diff --git a/.gitpod.yml b/.gitpod.yml index 85d4d56..a054866 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,12 +1,6 @@ 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 + - 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 && \ @@ -18,11 +12,13 @@ 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 + +github: + prebuilds: + branches: true \ No newline at end of file