Browse Source

assets cap tasks, load compass before sass_rails (no more override helpers)

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
894a283e1a
  1. 2
      Gemfile
  2. 9
      config/deploy.rb

2
Gemfile

@ -30,8 +30,8 @@ gem 'capistrano', '~> 2.9.0'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.1.0'
gem 'compass', '~> 0.12.alpha.0'
gem 'sass-rails', '~> 3.1.0'
gem 'coffee-rails', '~> 3.1.0'
gem 'uglifier'
gem 'therubyracer'

9
config/deploy.rb

@ -1,4 +1,5 @@
require 'bundler/capistrano'
load 'deploy/assets'
set :application, 'simpledns'
set :domain, 'zooz.dyndns.org'
@ -21,6 +22,14 @@ role :db, domain, :primary => true # This is where Rails migrations will run
after 'deploy:update_code', 'deploy:symlink_db'
# TODO
# chown -R clyfe:wwwdata /srv/www/apps/entrydns/current/public
# find /srv/www/apps/entrydns/current/public -type d -exec chmod 0750 {} +
# find /srv/www/apps/entrydns/current/public -type f -exec chmod 0640 {} +
# TODO
# precompile assets
namespace :deploy do
task :start, :roles => :app, :except => { :no_release => true } do
run "touch #{current_release}/tmp/restart.txt"

Loading…
Cancel
Save