Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -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 && \
Expand All @@ -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

github:
prebuilds:
branches: true