Skip to content

Commit

Permalink
Precompile assets and serve static files
Browse files Browse the repository at this point in the history
Note: setting for serving static files is different in
rails 4 and rails 5.
  • Loading branch information
Laura Pierson Wadden committed Sep 29, 2017
1 parent 0e40775 commit 49dcc77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup-database-and-run-solidus.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/sh

export RAILS_ENV=production
export RAILS_SERVE_STATIC_FILES=true

bundle exec rake db:create
bundle exec rake db:migrate
echo "no" | AUTO_ACCEPT=true bundle exec rake db:seed
bundle exec rake assets:precompile

bundle exec rails server

0 comments on commit 49dcc77

Please sign in to comment.