forked from directus/v8-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
36 lines (31 loc) · 1.41 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
image: gitpod/workspace-mysql
tasks:
- init: >
composer install &&
cp config/api_sample.php config/api.php &&
echo "downloading demo database..." &&
curl https://directus.github.io/demo-sql/demo.sql > demo.sql &&
echo "please wait while demo database (demo.sql) is being imported..." &&
mysql -u root < gitpod-helper.sql &&
mysql -u root -p'root' directus < demo.sql &&
rm demo.sql
command: >
apachectl start &&
echo "######################################################################################################" &&
echo "# " &&
echo "# Your Directus Backend is now running! You can access it with a Directus App by the following url:" &&
echo "# " &&
echo "# $GITPOD_WORKSPACE_URL/_/" | sed -e 's/https:\/\//https:\/\/8001-/g' &&
echo "# " &&
echo "# Username: [email protected] Password: password" &&
echo "# " &&
echo "# " &&
echo "# Quick access to Directus frontend app (choose 'other' in the api dropdown):" &&
echo "# " &&
echo "# Either use: https://directus.app/ " &&
echo "# or" &&
echo "# start a Directus App workspace: https://gitpod.io#https://github.com/directus/app" &&
echo "# " &&
echo "######################################################################################################"
ports:
- port: 8001