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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dce4c915e838e807df8eb32c7748353f14d7004b
4
- data.tar.gz: 202fe2f082ba1f9dbece2cca1390e9854755716a
3
+ metadata.gz: 3f6b05b186bacff11b09dcb717ea31363881c0fc
4
+ data.tar.gz: 4ab2791d37a1375bf63d439a12df5407adc74c9d
5
5
  SHA512:
6
- metadata.gz: 470f60ed61ab9b982f3f0da78b407f52ab23069219f44bba8f663567e0b0a1dcd07708e483a412f292c0823cc804001d95df29f7598243fb39c7da42e4e207a8
7
- data.tar.gz: d42b3410133d28cc34615b35201450ecfbdce8ff3ace087e1f40f7c2908d34737c1ddcc79acf765dd3c70f7a1f0b9d6c18ef60cffebf713a7c9802d9be503711
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
@@ -1,3 +1,3 @@
1
1
  module AmoebaDeployTools
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amoeba_deploy_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Jabbour