-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from Vizzuality/develop
production release
- Loading branch information
Showing
136 changed files
with
7,847 additions
and
3,923 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
SCRIPT_DIR="$(pwd)" | ||
CMS_ENV_FILE="$SCRIPT_DIR/cms/.env" | ||
echo $CMS_ENV_FILE | ||
if [[ -f "$CMS_ENV_FILE" ]] ; then | ||
echo "Importing CMS config.." | ||
cd ./cms && yarn config-sync import -y | ||
else | ||
echo "CMS env file does not exist, can't import config" | ||
echo "DEBUG: looking for env file in $CMS_ENV_FILE" | ||
fi |
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 @@ | ||
#!/bin/bash | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
# If frontend yarn.lock has changed, run yarn to install dependencies | ||
CLIENT_CHANGED=`git diff HEAD@{1} --stat -- ./frontend/yarn.lock | wc -l` | ||
if [ "$CLIENT_CHANGED" -gt 0 ]; | ||
then | ||
echo "frontend/yarn.lock has changed!" | ||
cd ./frontend && yarn | ||
fi | ||
|
||
# If CMS yarn.lock has changed, run yarn to install dependencies | ||
CMS_CHANGED=`git diff HEAD@{1} --stat -- ./cms/yarn.lock | wc -l` | ||
if [ "$CMS_CHANGED" -gt 0 ]; | ||
then | ||
echo "cms/yarn.lock has changed!" | ||
cd ./cms && yarn | ||
fi | ||
|
||
# If CMS env file exists and there are changes to the config sync files, import them into the DB | ||
CMS_CONFIG_CHANGED=`git diff HEAD@{1} --stat -- ./cms/config/sync/ | wc -l` | ||
SCRIPT_DIR="$(pwd)" | ||
CMS_ENV_FILE="$SCRIPT_DIR/../cms/.env" | ||
if [ ! -f "$CMS_ENV_FILE" ] ; then | ||
echo "CMS env file does not exist, can't import config." | ||
echo "DEBUG: looking for env file in $CMS_ENV_FILE" | ||
elif [ -f "$CMS_ENV_FILE" && "$CMS_CONFIG_CHANGED" -gt 0 ]; then | ||
echo "Importing CMS config..." | ||
cd ./cms && yarn config-sync import -y | ||
fi |
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
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
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
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
Oops, something went wrong.