-
-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deploy_build_before example hook for theme assets
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Placeholder `deploy_build_before` hook for building theme assets locally | ||
# and then copying the files to the remote server | ||
# | ||
# Uncomment the lines below and replace `sage` with your theme folder | ||
# | ||
# --- | ||
# - name: Run npm install | ||
# command: npm install | ||
# connection: local | ||
# args: | ||
# chdir: "{{ project.local_path }}/web/app/themes/sage" | ||
# - name: Run bower install | ||
# command: bower install | ||
# connection: local | ||
# args: | ||
# chdir: "{{ project.local_path }}/web/app/themes/sage" | ||
# - name: Run gulp | ||
# command: gulp --production | ||
# connection: local | ||
# args: | ||
# chdir: "{{ project.local_path }}/web/app/themes/sage" | ||
# - name: Copy project local files | ||
# synchronize: src="{{ item.src }}" | ||
# dest="{{ deploy_helper.new_release_path }}/{{ item.dest }}" | ||
# group=no | ||
# owner=no | ||
# rsync_opts=--chmod=Du=rwx,--chmod=Dg=rx,--chmod=Do=rx,--chmod=Fu=rw,--chmod=Fg=r,--chmod=Fo=r | ||
# with_items: | ||
# - src: "{{ project.local_path }}/web/app/themes/sage/dist" | ||
# dest: web/app/themes/sage |
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