capistrano-django 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3d51d03ce9f8b30b74024bc062a380891f4e28d
4
- data.tar.gz: b73dced689c9b9b287b66b9f4574832731461be8
3
+ metadata.gz: 1f92bcb1e11dad35b4c9549cbaf6bd779e36d3d2
4
+ data.tar.gz: c68e6d39dc3747b43827c2d53e1fd9e86299581f
5
5
  SHA512:
6
- metadata.gz: 7c002558d6b9e3a31ae6a175691d27714d692e95cffe42f4719a6545ce208e1a79e5cfe9e085e164974b708a8dbc7914527588c8f8f2ede2a8027ac3412bf9f6
7
- data.tar.gz: c3f50104242ff8484a836116051fa46d09d970f04ecde978d2d06a16f87645943b55b97cffe7b6c72353830ad8b2c50f410cba6d72b562ba42cac68ce71f3278
6
+ metadata.gz: 1f67c9400d9513ed63d0c345e5dbc0a476fb8a1e4fc32163dd37ddb623ddf8b653691249f357b5bc66a5651c735889f8432e627a0ff242c5f25ab4370b595287
7
+ data.tar.gz: 1182c30ffcb2a4344666ce0b6d5ab3fe885bfd690994b2ec8b0352b14930b0407d578fcaa9d3baa2ab2201f7415d06b8d5b7e79524a63d5abfe65255f774d434
@@ -20,6 +20,10 @@ namespace :python do
20
20
  execute "virtualenv #{virtualenv_path}"
21
21
  execute "#{virtualenv_path}/bin/pip install -r #{release_path}/#{fetch(:pip_requirements)}"
22
22
  end
23
+
24
+ if fetch(:grunt_task)
25
+ invoke 'nodejs:grunt'
26
+ end
23
27
  if fetch(:flask)
24
28
  invoke 'flask:setup'
25
29
  else
@@ -56,12 +60,20 @@ namespace :django do
56
60
  if fetch(:django_compressor)
57
61
  invoke 'django:compress'
58
62
  end
63
+ invoke 'django:compilemessages'
59
64
  invoke 'django:collectstatic'
60
65
  invoke 'django:symlink_settings'
61
66
  invoke 'django:symlink_wsgi'
62
67
  invoke 'django:migrate'
63
68
  end
64
69
 
70
+ desc "Compile Messages"
71
+ task :compilemessages do
72
+ if fetch :compilemessages
73
+ django("compilemessages")
74
+ end
75
+ end
76
+
65
77
  desc "Restart Celery"
66
78
  task :restart_celery do
67
79
  if fetch(:celery_name)
@@ -121,13 +133,11 @@ namespace :django do
121
133
  end
122
134
 
123
135
  namespace :nodejs do
124
- before 'deploy:restart', 'nodejs:grunt'
125
136
 
126
137
  desc "Run a grunt task"
127
138
  task :grunt do
128
- if fetch(:grunt_task)
129
139
  on roles(:web) do
130
- execute "cd #{release_path}; npm install"
140
+ execute "cd #{release_path}; npm install --production"
131
141
  execute "cd #{release_path}; ./node_modules/.bin/grunt #{fetch(:grunt_task)}"
132
142
  end
133
143
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-django
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew J. Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-14 00:00:00.000000000 Z
11
+ date: 2014-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -31,7 +31,6 @@ extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
33
  - lib/capistrano/django.rb
34
- - lib/capistrano/gitsubmodules.rb
35
34
  - lib/django_capistrano.rb
36
35
  homepage: http://github.com/mattjmorrison/capistrano-django
37
36
  licenses: []
@@ -1,25 +0,0 @@
1
- # Taken from https://github.com/juanibiapina/capistrano-scm-gitsubmodules
2
- # To support git < 1.7.10
3
-
4
- load "capistrano/tasks/git.rake"
5
-
6
- namespace :gitsubmodules do
7
-
8
- git_environmental_variables = {
9
- git_askpass: "/bin/echo",
10
- git_ssh: "#{fetch(:tmp_dir)}/git-ssh.sh"
11
- }
12
-
13
- task :check => 'git:check'
14
-
15
- desc 'Copy repo to releases'
16
- task create_release: :'git:update' do
17
- on roles :all do
18
- with git_environmental_variables do
19
- within repo_path do
20
- execute :git, :clone, "-b #{fetch :branch}", '--recursive', '.', release_path
21
- end
22
- end
23
- end
24
- end
25
- end