Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Feb 9, 2019
1 parent e6cd20c commit a0c5296
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 14 deletions.
Empty file removed deploy-hooks/.gitkeep
Empty file.
32 changes: 32 additions & 0 deletions deploy-hooks/build-before.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Placeholder `deploy_build_before` hook for building frontend assets on the
# host machine and then copying the files to the remote server
#
# ⚠️ The following is an simplified example of:
# 1. installing npm dependencies
# 2. compiling assets for production
# 3. uploading assests to remote servers
#
# An role for themes built with Sage 9 can be found at: https://github.com/ItinerisLtd/trellis-sage-9-compiler
# An example for themes built with Sage 8 can be found at: https://git.io/vdgUt
# More user contributed extensions can be found at: https://roots.io/trellis/docs/user-contributed-extensions/
#
# ---
# - name: Install npm dependencies
# command: yarn
# delegate_to: localhost
# args:
# chdir: "{{ project_local_path }}/web/app/themes/sage"
#
# - name: Compile assets for production
# command: yarn build:production
# delegate_to: localhost
# args:
# chdir: "{{ project_local_path }}/web/app/themes/sage"
#
# - name: Copy production assets
# synchronize:
# src: "{{ project_local_path }}/web/app/themes/sage/dist"
# dest: "{{ deploy_helper.new_release_path }}/web/app/themes/sage"
# group: no
# owner: no
# rsync_opts: --chmod=Du=rwx,--chmod=Dg=rx,--chmod=Do=rx,--chmod=Fu=rw,--chmod=Fg=r,--chmod=Fo=r
2 changes: 0 additions & 2 deletions group_vars/all/deploy-hooks.yml

This file was deleted.

6 changes: 0 additions & 6 deletions group_vars/production/wordpress_sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,3 @@ wordpress_sites:
provider: letsencrypt
cache:
enabled: false
# sage_9_compiler:
# - name: my-first-sage-theme-name
# - name: my-second-sage-theme-name
# cleanup: true
# - name: my-second-sage-theme-name
# cleanup: false
6 changes: 0 additions & 6 deletions group_vars/staging/wordpress_sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,3 @@ wordpress_sites:
provider: letsencrypt
cache:
enabled: false
# sage_9_compiler:
# - name: my-first-sage-theme-name
# - name: my-second-sage-theme-name
# cleanup: true
# - name: my-second-sage-theme-name
# cleanup: false

0 comments on commit a0c5296

Please sign in to comment.