capistrano-django 0.0.3.a → 0.0.3.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/capistrano/django.rb +5 -2
- metadata +1 -1
data/lib/capistrano/django.rb
CHANGED
@@ -8,7 +8,6 @@ Capistrano::Configuration.instance.load do
|
|
8
8
|
set :normalize_asset_timestamps, false
|
9
9
|
|
10
10
|
after :deploy, 'deploy:cleanup'
|
11
|
-
after 'deploy:restart', 'django:restart'
|
12
11
|
after 'deploy:update_code', 'nodejs:install_deps'
|
13
12
|
after 'deploy:update_code', 'python:create_virtualenv'
|
14
13
|
after 'python:create_virtualenv', 'python:install_deps'
|
@@ -68,7 +67,11 @@ Capistrano::Configuration.instance.load do
|
|
68
67
|
run "ln -s #{current_release}/project/settings/#{django_env}.py #{current_release}/project/settings/deployed.py"
|
69
68
|
end
|
70
69
|
|
71
|
-
|
70
|
+
end
|
71
|
+
|
72
|
+
namespace :deploy do
|
73
|
+
|
74
|
+
desc "Restart apache"
|
72
75
|
task :restart do
|
73
76
|
run "sudo apache2ctl graceful"
|
74
77
|
run "sudo service celeryd-django restart"
|