-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add command to sync src and wp while developing
- Loading branch information
Anderson Grudtner Martins
committed
Mar 10, 2017
1 parent
e7d5bd4
commit 0ed1e0f
Showing
3 changed files
with
36 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,8 @@ | ||
#!/bin/sh | ||
|
||
# Sync the src folder into wordpress, to auto-update the code while | ||
# developing. Used with fswatch in Mac OS to detect file changes. | ||
|
||
# rsync -rtvu --delete ./src ~/Projects/OSTraining/Git/dev-env-wordpress/www/wp-content/plugins/embedpress | ||
rm -rf ./src/* | ||
cp -R ~/Projects/OSTraining/Git/dev-env-wordpress/www/wp-content/plugins/embedpress/* ./src/ |
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,8 @@ | ||
#!/bin/sh | ||
|
||
# Sync the src folder into wordpress, to auto-update the code while | ||
# developing. Used with fswatch in Mac OS to detect file changes. | ||
|
||
# rsync -rtvu --delete ./src ~/Projects/OSTraining/Git/dev-env-wordpress/www/wp-content/plugins/embedpress | ||
rm -rf ~/Projects/OSTraining/Git/dev-env-wordpress/www/wp-content/plugins/embedpress/* | ||
cp -R ./src/* ~/Projects/OSTraining/Git/dev-env-wordpress/www/wp-content/plugins/embedpress/ |