railman-deployment 1.0.4 → 1.1.0

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: 88b0f7745e6e62249145a54906506af98f2868e5
4
- data.tar.gz: 23b13785e13848959bd771752e784e2c805f5d6c
3
+ metadata.gz: 035e656bf5a0be352ace26a8a8dad91753ac9ce6
4
+ data.tar.gz: 2f2c3bfdd1c04c904a7270b28fc9448d14dff018
5
5
  SHA512:
6
- metadata.gz: 28e1878db6de8fabf2bfeb38b45f2678f445b3a0372b19cc53c48959b619abba2676c2d58b58320a9dc5ac3049bee9be539be58c35db7fb1b3b1293b02222255
7
- data.tar.gz: 80bc88d1be4955b6050cac0cacb5840bfa568a871b59e7203499ce302e965a45f875c94fddab3e63ac05c0d2ae343aa48b8f013068c9262813d9f9502655f9e0
6
+ metadata.gz: b9c013a597e44e4e0735e78914470c8faac4d924f43ca94e9f226f11b26d66e1b535c64a50672776a2497a2ef96cd606440ca83c095562a87de58f1e6e0e7f74
7
+ data.tar.gz: 96d3ba1cb98a340d5cce42deb3e7fcbbbe026ff4153c166aad348c63fd841a899e2d23e2b975cc6f78aaf85f315d1fb5250a044d4fc32eaf3a86c9918b303d46
@@ -1,3 +1,3 @@
1
1
  module RailmanDeployment
2
- VERSION = '1.0.4'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -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)}.conf /etc/nginx/sites-enabled/"
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
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-15 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler