amoeba_deploy_tools 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amoeba_deploy_tools/capistrano/recipes.rb +27 -0
- data/lib/amoeba_deploy_tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f6b05b186bacff11b09dcb717ea31363881c0fc
|
4
|
+
data.tar.gz: 4ab2791d37a1375bf63d439a12df5407adc74c9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79ffb02b92121273a6f85e8149e68abbf085473fe25e70ede5364606a3ec634e7121cf6b9f6474182f01ecaa33815e896bdf63314eb6bb325a2e738fe918df88
|
7
|
+
data.tar.gz: 1f82a65613bf552363e74c4174ee18b8233a22b886f96d1d5a4b6ce0d10eadc461c1084f6b907fe8e0f8c53ae6f43ad4bcbe446cbdd54feb844c097391ef392a
|
@@ -11,4 +11,31 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
11
11
|
].join(' && ')
|
12
12
|
end
|
13
13
|
end
|
14
|
+
|
15
|
+
namespace :deploy do
|
16
|
+
desc "create the database (and load seed data)"
|
17
|
+
task :db_setup do
|
18
|
+
run "cd #{current_path}; bundle exec rake db:setup RAILS_ENV=#{rails_env}"
|
19
|
+
end
|
20
|
+
|
21
|
+
desc <<-DESC
|
22
|
+
Deploys and starts a `cold' application. This is useful if you have not \
|
23
|
+
deployed your application before, or if your application is (for some \
|
24
|
+
other reason) not currently running. It will deploy the code, create and seed the DB, run any \
|
25
|
+
pending migrations, and then instead of invoking `deploy:restart', it will \
|
26
|
+
invoke `deploy:start' to fire up the application servers.
|
27
|
+
DESC
|
28
|
+
task :cold do
|
29
|
+
update
|
30
|
+
db_setup
|
31
|
+
migrate
|
32
|
+
start
|
33
|
+
end
|
34
|
+
|
35
|
+
desc "restart the application (trigger passenger restart)"
|
36
|
+
task :restart, :roles => :app, :except => { :no_release => true } do
|
37
|
+
run "touch #{current_path}/tmp/restart.txt"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
14
41
|
end
|