capistrano3-foreman 0.2.3 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -1
- data/lib/capistrano-foreman.rb +1 -1
- data/lib/capistrano/tasks/foreman.cap +4 -2
- 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: 3517663e2b4d7eab56baca47ca98cee327ea7ce7
|
4
|
+
data.tar.gz: cc9981bb5c43a1e36e1d3e8ee0e7905a3e18106a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1162411c277019a2f506dcaaf3f6ed57546ed7ee01866985d83a9c6fb849d3cb208aba6f0a052c8121ce1ec98ff094e3fb6155ec80a888fcab82774bbd90483a
|
7
|
+
data.tar.gz: 47a76f695e45cbe4b1b2edddc978cea83a89e91087b68efa439145667366df520ff56f35f33042eed61d85de5020e7e71dd8d1dc84d3d3430629e5a5846504ad
|
data/README.md
CHANGED
@@ -27,13 +27,27 @@ Require in Capfile to use the default task:
|
|
27
27
|
require 'capistrano/foreman'
|
28
28
|
|
29
29
|
|
30
|
-
|
30
|
+
###Export Procfile to upstart###
|
31
31
|
|
32
32
|
This task will be run before `deploy:restart` as part of Capistrano's default deploy, or can be run in isolation with:
|
33
33
|
|
34
34
|
cap production foreman:export
|
35
35
|
|
36
|
+
**NOTE**
|
36
37
|
|
38
|
+
In order for foreman to export to upstart your deploy user must have `sudoer` privileges
|
39
|
+
|
40
|
+
|
41
|
+
###Options##
|
42
|
+
|
43
|
+
Custom ENVIRONMENT variables for foreman [(see here)](http://ddollar.github.io/foreman/#ENVIRONMENT).
|
44
|
+
|
45
|
+
set :foreman_env, '/remote/path/to/your.env' # Default none
|
46
|
+
|
47
|
+
|
48
|
+
## Build your own mini Heroku ##
|
49
|
+
|
50
|
+
Coming soon
|
37
51
|
|
38
52
|
## Contributing
|
39
53
|
|
data/lib/capistrano-foreman.rb
CHANGED
@@ -2,10 +2,12 @@ namespace :foreman do
|
|
2
2
|
desc 'Export the Procfile to Ubuntu upstart scripts'
|
3
3
|
task :export do
|
4
4
|
on roles(:app) do |host|
|
5
|
-
log_path
|
5
|
+
log_path = shared_path.join('log')
|
6
|
+
environment_path = fetch(:foreman_env)
|
7
|
+
|
6
8
|
within release_path do
|
7
9
|
as :root do
|
8
|
-
execute :bundle, "exec foreman export upstart /etc/init -a #{fetch(:application)} -u #{host.user} -l #{log_path}"
|
10
|
+
execute :bundle, "exec foreman export upstart /etc/init -a #{fetch(:application)} -u #{host.user} -l #{log_path} -e #{environment_path}"
|
9
11
|
end
|
10
12
|
end
|
11
13
|
end
|