refactor: repo (#1070)

This commit is contained in:
Mo
2022-06-07 07:18:41 -05:00
committed by GitHub
parent 4c65784421
commit f4ef63693c
1102 changed files with 5786 additions and 3366 deletions

View File

@@ -6,24 +6,22 @@ COMMAND=$1 && shift 1
case "$COMMAND" in
'start' )
echo "Prestart Step 1/1 - Removing server lock"
rm -f /app/tmp/pids/server.pid
rm -f /app/packages/web-server/tmp/pids/server.pid
echo "Starting Server..."
bundle exec rails s -b 0.0.0.0
yarn start
;;
'start-local' )
echo "Prestart Step 1/5 - Removing server lock"
rm -f /app/tmp/pids/server.pid
echo "Prestart Step 2/5 - Cleaning assets"
bundle exec rails assets:clobber
echo "Prestart Step 3/5 - Installing dependencies"
echo "Prestart Step 1/4 - Removing server lock"
rm -f /app/packages/web-server/tmp/pids/server.pid
echo "Prestart Step 2/4 - Cleaning assets"
yarn clean
echo "Prestart Step 3/4 - Installing dependencies"
yarn install --pure-lockfile
echo "Prestart Step 4/5 - Creating Webpack bundle"
yarn run bundle
echo "Prestart Step 5/5 - Compiling assets"
bundle exec rails assets:precompile
echo "Prestart Step 4/4 - Building"
yarn build
echo "Starting Server..."
bundle exec rails s -b 0.0.0.0
yarn start:web
;;
* )