We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02eff6f commit 8ac0f15Copy full SHA for 8ac0f15
1 file changed
evaluationserver/bin/docker_start
@@ -9,6 +9,13 @@ bundle install --jobs 4 --retry 3
9
echo "Clearing logs"
10
bin/rake log:clear
11
12
+production="production"
13
+
14
+if [ "$RAILS_ENV" == "$production" ]
15
+then
16
+bin/rails assets:precompile
17
+fi
18
19
echo "Setting up new db if one doesn't exist"
20
bundle exec rake db:migrate
21
@@ -21,4 +28,4 @@ rm -f tmp/pids/server.pid
28
22
29
23
30
echo "Starting app server"
24
-bundle exec rails s -p 8081 -b 0.0.0.0
31
+bundle exec rails s -p 8081 -b 0.0.0.0
0 commit comments