Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

run rake assets:precompile in deploy

  • Loading branch information...
commit fe20c1fa49dfb21a8bc859bd348a16b495e27127 1 parent 0e177f5
@essa essa authored
Showing with 9 additions and 20 deletions.
  1. +2 −3 Capfile
  2. +6 −16 config/deploy.rb
  3. +1 −1  config/unicorn.rb
View
5 Capfile
@@ -1,4 +1,3 @@
load 'deploy'
-# Uncomment if you are using Rails' asset pipeline
- # load 'deploy/assets'
-load 'config/deploy' # remove this line to skip loading any of the default tasks
+load 'deploy/assets'
+load 'config/deploy' # remove this line to skip loading any of the default tasks
View
22 config/deploy.rb
@@ -1,4 +1,6 @@
+require "bundler/capistrano"
+
set :application, "cojiro"
set :repository, "git://github.com/essa/cojiro.git"
set :rails_env, "production"
@@ -13,27 +15,15 @@
#set :public_children, []
set :default_environment, {
- 'PATH' => "/home/admin/.rbenv/shims:/home/admin/.rbenv/bin:$PATH"
+ 'PATH' => "/home/admin/.rbenv/shims:/home/admin/.rbenv/bin:/home/admin/.nave/installed/bin/:$PATH"
}
-# if you want to clean up old releases on each deploy uncomment this:
-# after "deploy:restart", "deploy:cleanup"
-
-# if you're still using the script/reaper helper you will need
-# these http://github.com/rails/irs_process_scripts
-
-# If you are using Passenger mod_rails uncomment this:
-# namespace :deploy do
-# task :start do ; end
-# task :stop do ; end
-# task :restart, :roles => :app, :except => { :no_release => true } do
-# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
-# end
-# end
+# It should be [:development, :test],but it did not work saying guard/jasmine/task not found
+set :bundle_without, []
set :config_files, %w(database.yml)
-after "deploy:update_code", :role => [:app] do
+after "deploy:finalize_update", :role => [:app] do
config_files.each do |file|
run "cp #{shared_path}/config/#{file} #{release_path}/config/#{file}"
end
View
2  config/unicorn.rb
@@ -1,6 +1,6 @@
worker_processes 4
-listen 3000, :tcp_nopush => true
+listen 6000, :tcp_nopush => true
timeout 30
Please sign in to comment.
Something went wrong with that request. Please try again.