Removed environment.rb to avoid overwriting it on update.
This commit is contained in:
parent
c032fdca6e
commit
a8d61d2591
2 changed files with 2 additions and 74 deletions
|
@ -38,12 +38,11 @@ Edit app_config.yml to suit your needs or just keep the defaults for now.
|
||||||
|
|
||||||
(4) Secret Token
|
(4) Secret Token
|
||||||
-------------------
|
-------------------
|
||||||
The user session are stored in cookies. Do avoid misusing the cookies and its sensitive information, rails
|
The user session is stored in a cookie. To avoid misusing the cookies and its sensitive information, rails will encrypt it with a token. So copy the config file
|
||||||
will encrypt it with a token. So copy the config file
|
|
||||||
|
|
||||||
cp config/environment.rb.SAMPLE config/environment.rb
|
cp config/environment.rb.SAMPLE config/environment.rb
|
||||||
|
|
||||||
and modify the token "config.action_controller.session"!!!
|
and modify the token "config.action_controller.session"!
|
||||||
|
|
||||||
|
|
||||||
(5) Required ruby and gems
|
(5) Required ruby and gems
|
||||||
|
|
|
@ -1,71 +0,0 @@
|
||||||
# Be sure to restart your web server when you modify this file.
|
|
||||||
|
|
||||||
# Uncomment below to force Rails into production mode when
|
|
||||||
# you don't control web/app server and can't set it the proper way
|
|
||||||
# ENV['RAILS_ENV'] ||= 'production'
|
|
||||||
|
|
||||||
# Specifies gem version of Rails to use when vendor/rails is not present
|
|
||||||
RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION
|
|
||||||
|
|
||||||
# Bootstrap the Rails environment, frameworks, and default configuration
|
|
||||||
require File.join(File.dirname(__FILE__), 'boot')
|
|
||||||
|
|
||||||
Rails::Initializer.run do |config|
|
|
||||||
# Settings in config/environments/* take precedence over those specified here.
|
|
||||||
# Application configuration should go into files in config/initializers
|
|
||||||
# -- all .rb files in that directory are automatically loaded.
|
|
||||||
# See Rails::Configuration for more options.
|
|
||||||
|
|
||||||
# Skip frameworks you're not going to use (only works if using vendor/rails)
|
|
||||||
# config.frameworks -= [ :action_web_service, :action_mailer ]
|
|
||||||
|
|
||||||
# Only load the plugins named here, by default all plugins in vendor/plugins are loaded
|
|
||||||
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
|
||||||
|
|
||||||
# Add additional load paths for your own custom dirs
|
|
||||||
# config.load_paths += %W( #{RAILS_ROOT}/extras )
|
|
||||||
|
|
||||||
# Force all environments to use the same logger level
|
|
||||||
# (by default production uses :info, the others :debug)
|
|
||||||
# config.log_level = :debug
|
|
||||||
|
|
||||||
# Disable colorized logging output for ActiveRecord:
|
|
||||||
config.active_record.colorize_logging = false
|
|
||||||
|
|
||||||
# Use the database for sessions instead of the file system
|
|
||||||
# (create the session table with 'rake db:sessions:create')
|
|
||||||
# config.action_controller.session_store = :active_record_store
|
|
||||||
|
|
||||||
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
|
||||||
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
|
||||||
# like if you have constraints or database-specific column types
|
|
||||||
# config.active_record.schema_format = :sql
|
|
||||||
|
|
||||||
# Activate observers that should always be running
|
|
||||||
# config.active_record.observers = :cacher, :garbage_collector
|
|
||||||
|
|
||||||
# Make Active Record use UTC-base instead of local time
|
|
||||||
config.time_zone = 'Berlin'
|
|
||||||
|
|
||||||
# Specify gems that this application depends on.
|
|
||||||
# They can then be installed with "rake gems:install" on new installations.
|
|
||||||
# You have to specify the :lib option for libraries, where the Gem name (sqlite3-ruby) differs from the file itself (sqlite3)
|
|
||||||
# config.gem "bj"
|
|
||||||
# config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
|
|
||||||
# config.gem "sqlite3-ruby", :lib => "sqlite3"
|
|
||||||
# config.gem "aws-s3", :lib => "aws/s3"
|
|
||||||
#
|
|
||||||
# config.gem "fastercsv"
|
|
||||||
# config.gem "prawn", :version => '<=0.6.3'
|
|
||||||
# config.gem "haml", :version => '>=2.0.6'
|
|
||||||
# config.gem "routing-filter", :lib => "routing_filter"
|
|
||||||
|
|
||||||
# The internationalization framework can be changed to have another default locale (standard is :en) or more load paths.
|
|
||||||
# library for parsing/writing files from/to csv-file
|
|
||||||
# All files from config/locales/*.rb,yml are added automatically.
|
|
||||||
# config.i18n.load_path << Dir[File.join(RAILS_ROOT, 'my', 'locales', '*.{rb,yml}')]
|
|
||||||
config.i18n.default_locale = :de
|
|
||||||
|
|
||||||
# See Rails::Configuration for more options
|
|
||||||
config.action_controller.session = { :key => "_myapp_session", :secret => "9195616576518931793179752176417923862176431279acfaedcbeafdcbeafdcbeafcbaefdcbaedcfadcf" }
|
|
||||||
end
|
|
Loading…
Reference in a new issue