bin/rails g migration AuthlogicToDevise- (see the file below for the actual migration,
authlogic_to_devise.rb) bin/rake db:migrate
gem "devise", "~> 2.2.0"bundle install
| upstream app { | |
| server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| server_name www.app.com; | |
| rewrite ^/(.*) http://app.com/$1 permanent; | |
| } | |
| server { |
| set :rails_env, :production | |
| set :unicorn_binary, "/usr/bin/unicorn" | |
| set :unicorn_config, "#{current_path}/config/unicorn.rb" | |
| set :unicorn_pid, "#{current_path}/tmp/pids/unicorn.pid" | |
| namespace :deploy do | |
| task :start, :roles => :app, :except => { :no_release => true } do | |
| run "cd #{current_path} && #{try_sudo} #{unicorn_binary} -c #{unicorn_config} -E #{rails_env} -D" | |
| end | |
| task :stop, :roles => :app, :except => { :no_release => true } do |
| #!/usr/bin/ruby | |
| # Migrate rubygems to Ruby Enterprise Edition (REE) | |
| # Make REE install the gems used by your default ruby environment. | |
| REE_PATH = ENV['REE_PATH'] || Dir.glob('/opt/ruby-enterprise-*').last | |
| unless REE_PATH | |
| puts "Can't find path to ruby enterprise edition. Please use the following command:" | |
| puts "REE_PATH=/path/to/ruby-enterprise ruby migrate-rubygems-to-ree" |