#72 Adding an Environment

Rails comes with three environments: development, test, and production. But, you aren't restricted to just these. You can add your own! See how in this episode.
# database.yml
staging:
  adapter: mysql
  database: store_staging
  user: root
  password:
  host: localhost

# environments/staging.rb
config.log_level = :debug

mysqladmin create store_staging -u root -p
rake db:migrate RAILS_ENV=staging
script/server -e staging

你可能感兴趣的:(mysql,Rails)