We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86e631b commit 6e2025dCopy full SHA for 6e2025d
docker/server
@@ -1,3 +1,9 @@
1
#!/bin/bash
2
3
-exec docker/rails server -b 0.0.0.0
+if [[ $1 = 'production' ]]; then
4
+ docker/rails assets:precompile
5
+ docker-compose exec -e RAILS_SERVE_STATIC_FILES=1 app \
6
+ bin/rails server -b 0.0.0.0 -e production
7
+else
8
+ docker/rails server -b 0.0.0.0
9
+fi
0 commit comments