Skip to content
Snippets Groups Projects
Unverified Commit 33e3859e authored by Marc Kohaupt's avatar Marc Kohaupt Committed by GitHub
Browse files

Compile assets before data migration. (#4181)

Fixes #4164
parent e36b7c6f
Branches
Tags
No related merge requests found
...@@ -6,6 +6,8 @@ fi ...@@ -6,6 +6,8 @@ fi
export PORT="${PORT:=3000}" export PORT="${PORT:=3000}"
echo "Web app starting on port: $PORT" echo "Web app starting on port: $PORT"
rails assets:precompile
if [ "$RAILS_ENV" = "production" ]; then if [ "$RAILS_ENV" = "production" ]; then
while ! rails db:version 2>/dev/null while ! rails db:version 2>/dev/null
do do
...@@ -17,6 +19,4 @@ fi ...@@ -17,6 +19,4 @@ fi
rails db:create rails db:create
rails db:migrate:with_data rails db:migrate:with_data
rails assets:precompile
rails s -b 0.0.0.0 -p $PORT rails s -b 0.0.0.0 -p $PORT
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment