Skip to content

Commit

Permalink
edited deployment configurations for production #18534
Browse files Browse the repository at this point in the history
  • Loading branch information
pwpuzzeld committed Jul 14, 2016
1 parent ba03d22 commit 1158e21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,3 @@ DEPENDENCIES
turbolinks
twitter-bootstrap-rails
uglifier

BUNDLED WITH
1.12.5
11 changes: 2 additions & 9 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,5 @@ test:
database: <%= ENV['RAILS_DB_NAME'] || "#{Rails.root}/db/test.sqlite3" %>

production:
database: <%= ENV['RAILS_DB_NAME'] || "cryptopus_production" %>
adapter: <%= ENV['RAILS_DB_ADAPTER'] || 'mysql2' %>
host: <%= ENV['RAILS_DB_HOST'] || '127.0.0.1' %>
port: <%= ENV['RAILS_DB_PORT'] || 3306 %>
username: <%= ENV['RAILS_DB_USERNAME'] %>
password: <%= ENV['RAILS_DB_PASSWORD'] %>
pool: 5
timeout: 5000
encoding: utf8
<<: *generic
database: <%= ENV['RAILS_DB_NAME'] || "#{Rails.root}/db/development.sqlite3" %>
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
config.action_controller.perform_caching = true

# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_files = false
config.serve_static_files = true

# Compress JavaScripts and CSS
config.assets.compress = true
Expand Down

0 comments on commit 1158e21

Please sign in to comment.