forked from opensupports/opensupports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
131 changed files
with
675 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,38 @@ | ||
echo "1/3 Building frontend..." | ||
cd client | ||
gulp prod --api | ||
npm run build | ||
rm build/index.html | ||
echo "2/3 Creating api folder..." | ||
cd ../server | ||
composer install | ||
echo -n > config.php | ||
mkdir files2 | ||
mv files/.htaccess files2 | ||
rm -rf files/ | ||
mv files2 files | ||
cd .. | ||
mkdir api | ||
cp server/index.php api | ||
cp server/.htaccess api | ||
cp server/composer.json api | ||
cp server/composer.lock api | ||
cp -R server/controllers api | ||
cp -R server/data api | ||
cp -R server/libs api | ||
cp -R server/models api | ||
cp -R server/vendor api | ||
cp -R server/files api | ||
echo -n > api/config.php | ||
mv server/index.php api | ||
mv server/.htaccess api | ||
mv server/composer.json api | ||
mv server/composer.lock api | ||
mv server/controllers api | ||
mv server/data api | ||
mv server/libs api | ||
mv server/models api | ||
mv server/vendor api | ||
mv server/files api | ||
cp server/config.php api | ||
chmod -R 755 . | ||
cp client/src/index.php client/build | ||
echo "3/3 Generating zip..." | ||
cd client/build | ||
zip opensupports_dev.zip index.php | ||
zip -u opensupports_dev.zip .htaccess | ||
zip -u opensupports_dev.zip css/main.css | ||
zip -u opensupports_dev.zip js/main.js | ||
zip -ur opensupports_dev.zip fonts | ||
zip -u opensupports_dev.zip bundle.js | ||
zip -ur opensupports_dev.zip images | ||
mv opensupports_dev.zip ../.. | ||
cd ../.. | ||
zip -ur opensupports_dev.zip api | ||
rm -rf dist | ||
mkdir dist | ||
mv opensupports_dev.zip dist | ||
rm -rf api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.