-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
33 lines (33 loc) · 1.26 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
image:
file: .gitpod.dockerfile
ports:
- port: 8080
onOpen: open-preview
- port: 3306
onOpen: ignore
tasks:
- name: Apache & MySQL
command: >
cp .env.example .env;
cp .htaccess.example .htaccess;
mysqld --initialize-insecure --log-error=$GITPOD_REPO_ROOT/gitpod_config/mysql/logs/error.log --general-log-file=$GITPOD_REPO_ROOT/gitpod_config/mysql/logs/mysql.log --datadir=$GITPOD_REPO_ROOT/gitpod_config/mysql/data;
mysqld --log-error=$GITPOD_REPO_ROOT/gitpod_config/mysql/logs/error.log --general-log-file=$GITPOD_REPO_ROOT/gitpod_config/mysql/logs/mysql.log --datadir=$GITPOD_REPO_ROOT/gitpod_config/mysql/data &
sleep 5;
mysql -u root -e "CREATE DATABASE wordpress";
apachectl start;
multitail /workspace/wordpress-hello/gitpod_config/apache/logs/access.log -I /workspace/wordpress-hello/gitpod_config/apache/logs/error.log
- name: Terminal
command: >
echo "";
echo "";
echo "";
echo "Welcome!";
echo "";
echo "To begin the WordPress installation run: $ bash install.sh";
echo "";
echo "Start, stop or review Apache errors:";
echo " * apachectl stop";
echo " * apachectl start";
echo " * gp open /var/log/apache2/access.log";
echo " * gp open /var/log/apache2/error.log";
openMode: split-right