taperole 1.1.5 → 1.2.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: cfbe8363e43a2992c1233e8da622cdd70b5bcad0
4
- data.tar.gz: a73eff20bb33123cc1b6981bcdb916a38895dc17
3
+ metadata.gz: 1f1b355dd70b804e1303b2526ac99a120223e571
4
+ data.tar.gz: a02ded99244f722784a1f589dca590f26b38fa2a
5
5
  SHA512:
6
- metadata.gz: 63a4f391a102c4520d1eac877daf75b4bbb983728ad3975f0ede4a7e6aa797b19ebc0b0e372af3d52a476e89c400f994f3f34cea2c3c357b8aca9eaea6b7043a
7
- data.tar.gz: 656a1d7a514d9b72788a39db02d089f6a74c7264f0bb4895c33328f9ed38203a13ed08741b5df980934833a88b1ae710f2ca009f76adc97a64f074e9a377764c
6
+ metadata.gz: 05a73c51e2cc6efa2830a41af42d380f93aed5913c71b1a66d49d379fab1d86b917295827446111b3da30f04f5287c7ec8a3e4b6278887068541f479b91ed548
7
+ data.tar.gz: 2787da3e289173e713a981c48001ab8b1ff97aee54a285f52b34a273949b0a0aeb8b4f30274426e94361b1058b4fbc454b1674a2da384837669b670217f39eb5
@@ -30,11 +30,14 @@ class AnsibleRunner < ExecutionModule
30
30
  action :bundle,
31
31
  proc {ansible '-t bundle -e force_bundle=true'},
32
32
  "Bundles the gems running on the app servers"
33
+ action :be_deploy,
34
+ proc {ansible_deploy '-t be_deploy'},
35
+ "Re-deploys fe code"
33
36
  action :fe_deploy,
34
37
  proc {ansible_deploy '-t fe_deploy'},
35
38
  "Re-deploys fe code"
36
39
  action :deploy,
37
- proc {ansible_deploy '-t be_deploy'},
40
+ proc {ansible_deploy '-t be_deploy,fe_deploy'},
38
41
  "Checks out app code, installs dependencies and restarts unicorns for "\
39
42
  "both FE and BE code."
40
43
  action :everything, proc {ansible}, "This does it all."
@@ -1,8 +1,30 @@
1
- - name: rsync the FE app
1
+ # - name: rsync the FE app
2
+ # remote_user: "{{ deployer_user.name }}"
3
+ # synchronize:
4
+ # src={{ fe_app_local_path }}/
5
+ # dest={{ fe_app_path }}
6
+ # tags: [fe_deploy]
7
+ # register: fe_app_checkout
8
+ # when: fe_app_local_path is defined
9
+
10
+
11
+ - name: clone the FE app
2
12
  remote_user: "{{ deployer_user.name }}"
3
- synchronize:
4
- src={{ fe_app_local_path }}/
5
- dest={{ fe_app_path }}
13
+ git: dest={{ fe_app_path }}
14
+ repo={{ fe_app_repo }}
15
+ version={{ fe_app_branch }}
16
+ accept_hostkey=true
17
+ force=yes
18
+ tags: [fe_deploy]
19
+
20
+ - name: NPM install
21
+ command: bash -lc
22
+ command: chdir={{ fe_app_path }}
23
+ bash -lc 'npm install'
24
+ tags: [fe_deploy]
25
+
26
+ - name: Build FE
27
+ command: bash -lc
28
+ command: chdir={{ fe_app_path }}
29
+ bash -lc 'gulp build'
6
30
  tags: [fe_deploy]
7
- register: fe_app_checkout
8
- when: fe_app_local_path is defined
@@ -0,0 +1,3 @@
1
+ - name: Ensure gulp is installed
2
+ npm: name=gulp state=present global=yes
3
+ when: fe_app_repo is defined
data/taperole.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "taperole"
3
- spec.version = '1.1.5'
3
+ spec.version = '1.2.0'
4
4
  spec.authors = ['Jack Forrest', 'Smashing Boxes', 'Brandon Mathis']
5
5
  spec.email = ['jack@smashingboxes.com', 'brandon@sbox.es']
6
6
  spec.summary = 'A tool for provisioning and deploying boxes for hosting Rails apps'
@@ -13,6 +13,7 @@
13
13
  - postgres
14
14
  - nginx
15
15
  - backend_install_essentials
16
+ - frontend_install_essentials
16
17
  - backend_checkout
17
18
  - unicorn_install
18
19
  - backend_config
@@ -5,7 +5,8 @@ be_app_repo:
5
5
 
6
6
  # HTML/JS App Configs
7
7
  # Uncomment if you want to deploy a JS/HTML App
8
- # fe_app_local_path: /path/to/built/js/app/
8
+ # fe_app_repo:
9
+ # fe_app_branch: master
9
10
 
10
11
  dev_key_files:
11
12
  - dev_keys/key.pub
@@ -9,6 +9,7 @@
9
9
  roles:
10
10
  - general
11
11
  - deployer_user
12
+ - frontend_install_essentials
12
13
  - monit_install
13
14
  - nginx
14
15
  - frontend_deploy
@@ -1,7 +1,8 @@
1
1
  app_name:
2
2
 
3
3
  # App Configs
4
- fe_app_local_path: /path/to/built/js/app
4
+ fe_app_repo:
5
+ fe_app_branch: master
5
6
 
6
7
  dev_key_files:
7
8
  - dev_keys/key.pub
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taperole
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Forrest
@@ -56,6 +56,7 @@ files:
56
56
  - roles/deployer_user/tasks/main.yml
57
57
  - roles/frontend_deploy/handlers/main.yml
58
58
  - roles/frontend_deploy/tasks/main.yml
59
+ - roles/frontend_install_essentials/tasks/main.yml
59
60
  - roles/general/meta/main.yml
60
61
  - roles/general/tasks/basic_packages.yml
61
62
  - roles/general/tasks/main.yml