railman-deployment 1.0.4 → 1.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 035e656bf5a0be352ace26a8a8dad91753ac9ce6
|
4
|
+
data.tar.gz: 2f2c3bfdd1c04c904a7270b28fc9448d14dff018
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9c013a597e44e4e0735e78914470c8faac4d924f43ca94e9f226f11b26d66e1b535c64a50672776a2497a2ef96cd606440ca83c095562a87de58f1e6e0e7f74
|
7
|
+
data.tar.gz: 96d3ba1cb98a340d5cce42deb3e7fcbbbe026ff4153c166aad348c63fd841a899e2d23e2b975cc6f78aaf85f315d1fb5250a044d4fc32eaf3a86c9918b303d46
|
@@ -10,7 +10,7 @@ task :setup do
|
|
10
10
|
end
|
11
11
|
server_conf_dir = "#{fetch(:deploy_to)}/config/server"
|
12
12
|
execute :cp, "#{server_conf_dir}/nginx.conf /etc/nginx/sites-available/#{fetch(:domain)}"
|
13
|
-
execute :ln, "-s -f /etc/nginx/sites-available/#{fetch(:domain)}
|
13
|
+
execute :ln, "-s -f /etc/nginx/sites-available/#{fetch(:domain)} /etc/nginx/sites-enabled/"
|
14
14
|
execute :ln, "-s -f #{server_conf_dir}/logrotate.conf /etc/logrotate.d/#{fetch(:application)}"
|
15
15
|
within fetch(:deploy_to) do
|
16
16
|
execute :bundle, :install, '--without development test'
|
@@ -80,6 +80,13 @@ task :update do
|
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
+
if fetch(:spa_application)
|
84
|
+
desc 'Deploy vue.js SPA'
|
85
|
+
task :deploy_spa do
|
86
|
+
warn 'TODO: deploy spa'
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
83
90
|
desc "Recreate server database from db/#{fetch(:application)}.sql and sync local dirs if any"
|
84
91
|
task :reset_server do
|
85
92
|
on roles(:all) do
|
@@ -1,5 +1,8 @@
|
|
1
1
|
task :set_railman_env do
|
2
2
|
set :deploy_to, "/home/deploy/apps/#{fetch(:application)}"
|
3
|
+
if fetch(:spa_application)
|
4
|
+
set :deploy_spa_to, "/home/deploy/sites/#{fetch(:spa_application)}"
|
5
|
+
end
|
3
6
|
set :rbenv_home, '/home/deploy/.rbenv'
|
4
7
|
set :environment, {path: "#{fetch(:rbenv_home)}/shims:#{fetch(:rbenv_home)}/bin:$PATH", rails_env: 'production'}
|
5
8
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railman-deployment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Jancev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|