-
-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters