deployinator 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/deployinator/deploy.rb
CHANGED
@@ -188,6 +188,19 @@ namespace :deploy do
|
|
188
188
|
end
|
189
189
|
end
|
190
190
|
|
191
|
+
task :print_rails_console do
|
192
|
+
run_locally do
|
193
|
+
command = [
|
194
|
+
"docker", "exec", "--interactive", "--tty",
|
195
|
+
fetch(:ruby_container_name),
|
196
|
+
"bash", "-c", "\"cd", current_path, "&&",
|
197
|
+
shared_path.join('bundle', 'bin', 'rails'),
|
198
|
+
"console", "#{fetch(:rails_env)}\""
|
199
|
+
].join(' ')
|
200
|
+
info command
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
191
204
|
after 'deploy:finished', :success_message do
|
192
205
|
run_locally do
|
193
206
|
info "That was a successful deploy!"
|
@@ -9,7 +9,7 @@ set :webserver_username, "www-data" # less trusted web server user with
|
|
9
9
|
|
10
10
|
set :webserver_writeable_dirs, [shared_path.join('run'), shared_path.join("tmp"), shared_path.join("log")]
|
11
11
|
set :webserver_executable_dirs, [shared_path.join("bundle", "bin")]
|
12
|
-
set :ignore_permissions_dirs, [shared_path.join("postgres")]
|
12
|
+
set :ignore_permissions_dirs, [shared_path.join("postgres"), shared_path.join("nginx")]
|
13
13
|
set :webserver_socket_path, shared_path.join('run')
|
14
14
|
|
15
15
|
# Default branch is :master
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deployinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-12-
|
12
|
+
date: 2014-12-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|