Skip to content

Commit

Permalink
Sync hs-colorful site for gitpod (#1144)
Browse files Browse the repository at this point in the history
* Sync hs-colorful site for gitpod

* Adjust if statement

* Fix database

* adjusted commands

* dont use env variable

* Sql-sync extra arg

* missing dash

* toggle modules

* Disable saml
  • Loading branch information
pookmish authored Jul 5, 2022
1 parent b33d4c5 commit 7596545
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
27 changes: 16 additions & 11 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,26 @@ tasks:
export PREVIEW_FULL_URL=`gp url 8001` &&
export PREVIEW_URL=${PREVIEW_FULL_URL#"https://"} &&
cp .gitpod/blt.yml blt/local.blt.yml &&
composer update --no-interaction &&
composer install --no-interaction &&
rm -rf docroot/*/custom/* &&
composer install --prefer-source --no-interaction &&
blt blt:telemetry:disable --no-interaction &&
cp .gitpod/gitpod.settings.php docroot/sites/settings/local.settings.php &&
blt settings &&
mysql -u root -e 'CREATE DATABASE IF NOT EXISTS drupal' &&
blt drupal:install -n &&
mysql -u root -e 'CREATE DATABASE IF NOT EXISTS drupal_default; CREATE DATABASE IF NOT EXISTS drupal' &&
blt sws:keys &&
blt sbsc
command: |
apache2ctl restart
gp await-port 8001
drush uli
blt source:build:simplesamlphp-config &&
drush sql-sync @hs_colorful.prod @self --extra-dump='--no-tablespaces --insert-ignore' -y &&
drush updb -y &&
blt drupal:toggle:modules &&
drush cim --partial -y &&
drush cim --partial -y
command: >
git config core.fileMode false &&
blt blt:telemetry:disable --no-interaction &&
git remote set-url origin [email protected]:SU-HSDO/suhumsci.git &&
apache2ctl restart &&
gp await-port 8001 &&
drush uli &&
drush uli | xargs gp preview --external
git config core.fileMode false
blt blt:telemetry:disable --no-interaction
git remote set-url origin [email protected]:SU-HSDO/suhumsci.git
5 changes: 2 additions & 3 deletions .gitpod/gitpod.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);

// Print errors on WSOD.
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
// Saml login doesn't work on gitpod. So disable it.
$config['simplesamlphp_auth.settings']['activate'] = FALSE;

0 comments on commit 7596545

Please sign in to comment.