fix: local docker-compose setup (#460)

This commit is contained in:
Karol Sójko
2020-09-01 16:16:40 +02:00
committed by GitHub
parent 153d05d58c
commit 6a1c10d3f7
5 changed files with 64 additions and 22 deletions

View File

@@ -9,6 +9,21 @@ case "$1" in
bundle exec rails s -b 0.0.0.0
;;
'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"
npm install
echo "Prestart Step 4/5 - Creating Webpack bundle"
npm run bundle
echo "Prestart Step 5/5 - Compiling assets"
bundle exec rails assets:precompile
echo "Starting Server..."
bundle exec rails s -b 0.0.0.0
;;
* )
echo "Unknown command"
;;