diff --git a/Dockerfile b/Dockerfile index 0de0575..5f10b70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,6 @@ COPY . . RUN chmod 600 config/master.key -RUN bundle exec rails assets:precompile +RUN bundle exec rails assets:precompile CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"] \ No newline at end of file diff --git a/config/environments/production.rb b/config/environments/production.rb index 6a042a2..c728e83 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -22,7 +22,7 @@ Rails.application.configure do # Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. - config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + config.public_file_server.enabled = true # Compress JavaScripts and CSS. config.assets.js_compressor = Uglifier.new(harmony: true)