-
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.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 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 |
---|---|---|
|
@@ -55,7 +55,7 @@ tasks: | |
eval $(gp env -e APACHE_DOCROOT_IN_REPO=../back/docroot) && | ||
apache2ctl restart && | ||
gp ports await 8001 && | ||
find docroot -name 'local.drush.yml' | xargs rm && | ||
find docroot -name 'local.drush.yml' | xargs rm -rf && | ||
export NEXT_PUBLIC_DRUPAL_BASE_URL=`gp url 8001` && | ||
export PREVIEW_URL=${NEXT_PUBLIC_DRUPAL_BASE_URL#"https://"} && | ||
echo "<?php \$sites['$PREVIEW_URL'] = 'summer';" > docroot/sites/local.sites.php && | ||
|
@@ -75,10 +75,10 @@ tasks: | |
sed -i -r "s|NEXT_PUBLIC_DRUPAL_BASE_URL.*|NEXT_PUBLIC_DRUPAL_BASE_URL=$NEXT_PUBLIC_DRUPAL_BASE_URL|g" .env.local && | ||
yarn dev & | ||
gp ports await 3000 && | ||
gp url 3000 | xargs gp preview --external | ||
gp url 3000 | xargs gp preview --external && | ||
git remote set-url origin $(echo $GITPOD_WORKSPACE_CONTEXT | jq -r .repository.cloneUrl | sed -E 's|^.*.com/(.*)$|[email protected]:\1|') | ||
- name: SSH Keys | ||
before: | | ||
git remote set-url origin $(echo $GITPOD_WORKSPACE_CONTEXT | jq -r .repository.cloneUrl | sed -E 's|^.*.com/(.*)$|[email protected]:\1|') | ||
mkdir -p ~/.ssh | ||
if [[ ! -z $SSH_PUBLIC_KEY ]]; then | ||
echo $SSH_PUBLIC_KEY | base64 -d > ~/.ssh/id_rsa.pub && chmod 644 ~/.ssh/id_rsa.pub | ||
|