-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
8d8571d
commit b61d2fd
Showing
9 changed files
with
50 additions
and
6 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 @@ | ||
security file, to enforce that we don't remove wrong folders |
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,3 @@ | ||
CRYSTALLIZE_ACCESS_TOKEN_ID="##CRYSTALLIZE_ACCESS_TOKEN_ID##" | ||
CRYSTALLIZE_ACCESS_TOKEN_SECRET="##CRYSTALLIZE_ACCESS_TOKEN_SECRET##" | ||
CRYSTALLIZE_TENANT_IDENTIFIER="##CRYSTALLIZE_TENANT_IDENTIFIER##" |
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,3 @@ | ||
User-agent: * | ||
|
||
Allow: / |
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,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT=$(readlink -f "$0") | ||
SCRIPTPATH=$(dirname "${SCRIPT}") | ||
PROJECT_PATH=${SCRIPTPATH}/../.. | ||
|
||
console() { | ||
echo -e ${PROJECT_PATH} | ||
} | ||
|
||
if [ ! -f "${PROJECT_PATH}/provisioning/clone/.crystallize" ]; then | ||
echo "It does not seem to be a clean clone. Aborting." | ||
exit 1 | ||
fi | ||
|
||
# Note that Crystallize CLI is acting before this script. | ||
|
||
echo "Setup ${PROJECT_PATH}" | ||
cp ${PROJECT_PATH}/provisioning/clone/robots.txt ${PROJECT_PATH}/remix/robots.txt | ||
cp ${PROJECT_PATH}/provisioning/clone/.env.dist ${PROJECT_PATH}/service-api/.env.dist | ||
|
||
#--- | ||
echo "Running command ${PROJECT_PATH}" | ||
cd ${PROJECT_PATH}/remix && cat ${PROJECT_PATH}/remix/.env.local.example <(echo) ${PROJECT_PATH}/remix/.env.dist > .env | ||
cd ${PROJECT_PATH}/service-api && cat ${PROJECT_PATH}/service-api/.env.local.example <(echo) ${PROJECT_PATH}/service-api/.env.dist > .env | ||
cd ${PROJECT_PATH}/remix && npm install --no-progress --no-color --legacy-peer-deps | ||
cd ${PROJECT_PATH}/service-api && npm install --no-progress --no-color --legacy-peer-deps | ||
|
||
#--- | ||
|
||
echo "Cleanup ${PROJECT_PATH}" | ||
|
||
rm -rf ${PROJECT_PATH}/.github | ||
rm -rf ${PROJECT_PATH}/.git | ||
rm -rf ${PROJECT_PATH}/.vscode | ||
rm -rf ${PROJECT_PATH}/provisioning/clone |
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,2 @@ | ||
Next Steps | ||
Congratualions! Project has installed with success. |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CRYSTALLIZE_TENANT_IDENTIFIER= | ||
SERVICE_API_URL= | ||
NODE_EXECUTION_MODE= |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.