add precompile
This commit is contained in:
parent
d2dbe948d8
commit
688ef2d992
|
@ -27,7 +27,7 @@ Rails.application.configure do
|
|||
|
||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||
config.assets.compile = true
|
||||
|
||||
config.assets.precompile += %w[active_admin.css active_admin.js]
|
||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||
# config.action_controller.asset_host = 'http://assets.example.com'
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
command: bash -c "rm -f tmp/pids/server.pid && EDITOR='mate --wait' bundle exec rails credentials:edit && bundle exec rake db:create db:migrate db:seed && bundle exec rails s -b '0.0.0.0'"
|
||||
command: bash -c "rm -f tmp/pids/server.pid && EDITOR='mate --wait' bundle exec rails credentials:edit && bundle exec rake assets:precompile && bundle exec rake db:create db:migrate db:seed && bundle exec rails s -e production -b '0.0.0.0'"
|
||||
volumes:
|
||||
- .:/app
|
||||
- bundle:/usr/local/bundle
|
||||
|
@ -35,4 +35,4 @@ services:
|
|||
networks:
|
||||
default:
|
||||
external:
|
||||
name: nginx-proxy
|
||||
name: nginx-proxy
|
Loading…
Reference in New Issue
Block a user