Git
edit .gitignore to include folders and files you don't want to have in remote repository.
Secrets.yml
create secrets.yml and set: - secret_key_base - random string - db connection (db, db_user, db_password) - http authentication if you want to close this version by password (admin_pwd)
# config/secrets.yml
development:
secret_key_base: YourKeyHere
db: my_cms_tpl
db_user: root
db_password:
test:
..
beta:
secret_key_base: YourKeyHere
admin_pwd: betapass
db: test_my_cms_tpl
db_user: root
db_password:
production:
secret_key_base: YourKeyHere
db: my_cms_tpl
db_user: root
db_password:
Deployment
edit config/deploy.rb' and files inconfig/deploy`.
Read this about deployment.
General
set your app name
# config/application.rb
#
config.SITE_NAME = 'myapp'
config.redis_prefix = 'myapp'
Locale
Set default locale, time zone
# config/initializers/locale.rb
Rails.application.config.time_zone = 'Europe/Kiev'
#Rails.application.config.i18n.enforce_available_locales = false
I18n.enforce_available_locales = false
#config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}').to_s]
#I18n.load_path += Dir[Rails.root.join('lib', 'locale', '*.{rb,yml}')]
I18n.default_locale = :en