From a512036e846dca96499cb7f31a1c845490517695 Mon Sep 17 00:00:00 2001 From: Tmy2017 <30006459+tmy2017@users.noreply.github.com> Date: Mon, 24 Jan 2022 23:32:05 +0100 Subject: [PATCH 1/4] to report bug about `gp preview` --- .gitpod.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 85d4d56..267966f 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,12 +1,5 @@ image: tmy2017/gitpod-pstorm-with-php71-mysql8:ver-1640846949 tasks: - - command: | - gp await-port 8765 && sleep 3 && gp preview $(gp url 8765)/users/login - # change version php - # php & composer binary are all out of /workspace hence can not do as init... must do everytime before workspace starts - - # mysql is in workspace, hence can use init - # before + command for every new & *restart* workfspace - before: | sudo add-apt-repository ppa:ondrej/php -y && \ sudo install-packages php7.2 php7.2-xdebug php7.2-mysql php7.2-intl php7.2-mbstring php7.2-curl php7.2-simplexml && \ @@ -18,11 +11,10 @@ tasks: cp config/.gitpod.env config/.env cp config/.gitpod.app_local.php config/app_local.php composer install --no-interaction - # ONLY at NEW workspace, mysql is persisted - hence suitable for db seeding init: | mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';" mysql -e "create database cake_cms" mysql -D cake_cms < config/.gitpod.seed.sql command: | bin/cake server - # try found by https://sourcegraph.com/github.com/BabylonJS/Babylon.js/-/blob/.gitpod.yml?L7 \ No newline at end of file + gp preview $(gp url 8765)/users/login \ No newline at end of file From 8c5ef73c45a0c18d188ea1812b60c4ce3a63c8b9 Mon Sep 17 00:00:00 2001 From: Tmy2017 <30006459+tmy2017@users.noreply.github.com> Date: Mon, 24 Jan 2022 23:32:45 +0100 Subject: [PATCH 2/4] turn on prebuild --- .gitpod.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 267966f..ddc9896 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -17,4 +17,8 @@ tasks: mysql -D cake_cms < config/.gitpod.seed.sql command: | bin/cake server - gp preview $(gp url 8765)/users/login \ No newline at end of file + gp preview $(gp url 8765)/users/login + +github: + branches: + prebuilds: true \ No newline at end of file From 818fefb278530e532dfe5547746e7ae1b624e8a1 Mon Sep 17 00:00:00 2001 From: Tmy2017 <30006459+tmy2017@users.noreply.github.com> Date: Mon, 24 Jan 2022 23:33:58 +0100 Subject: [PATCH 3/4] fix --- .gitpod.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index ddc9896..6b52b95 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -20,5 +20,5 @@ tasks: gp preview $(gp url 8765)/users/login github: - branches: - prebuilds: true \ No newline at end of file + prebuilds: + branches: true \ No newline at end of file From 997d71f7770b3bb833ebcb02adddd01048c59dbb Mon Sep 17 00:00:00 2001 From: Tmy2017 <30006459+tmy2017@users.noreply.github.com> Date: Tue, 25 Jan 2022 08:59:14 +0100 Subject: [PATCH 4/4] fix --- .gitpod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 6b52b95..a054866 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,5 +1,6 @@ image: tmy2017/gitpod-pstorm-with-php71-mysql8:ver-1640846949 tasks: + - command: gp preview $(gp url 8765)/users/login - before: | sudo add-apt-repository ppa:ondrej/php -y && \ sudo install-packages php7.2 php7.2-xdebug php7.2-mysql php7.2-intl php7.2-mbstring php7.2-curl php7.2-simplexml && \ @@ -17,7 +18,6 @@ tasks: mysql -D cake_cms < config/.gitpod.seed.sql command: | bin/cake server - gp preview $(gp url 8765)/users/login github: prebuilds: