-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.gitpod.yml
60 lines (55 loc) · 1.73 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# ddev and composer are running as part of the prebuild
# when starting a workspace all docker images are ready
tasks:
- init: |
sudo chown gitpod:gitpod .
curl -O https://gist.githubusercontent.com/ainsofs/ba947741b230606be5d2f4aad6faf7bf/raw/.bash_aliases
source .bash_aliases
cp .env .env.gitpod
sed -i "s|PROJECT_BASE_URL=sita-membership.docker.localhost|PROJECT_BASE_URL=${GITPOD_WORKSPACE_URL}|g" .env.gitpod
sed -i "s|PROJECT_BASE_URL=https://|PROJECT_BASE_URL=8000-|g" .env.gitpod
sed -i "s|APP_URL=http://\${PROJECT_BASE_URL}:\${PROJECT_PORT}|APP_URL=${GITPOD_WORKSPACE_URL}|g" .env.gitpod
sed -i "s|APP_URL=https://|APP_URL=https://8000-|g" .env.gitpod
make gitpod
make composer "install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist"
docker compose stop node
make gitpod
cp laravel/.env.dev laravel/.env
make composer build
make composer dev
make artisan key:generate
make artisan storage:link
command: |
source .bash_aliases
make gitpod
make logs php node
# VScode xdebug extension
vscode:
extensions:
# PHP extensions.
- felixfbecker.php-debug
- wongjn.php-sniffer
- neilbrayfield.php-docblocker
- bmewburn.vscode-intelephense-client
- devsense.composer-php-vscode
# Bash extensions.
# - timonwong.shellcheck
# - rogalmic.bash-debug
# Vue extensions.
- vue.volar
# AI extensions.
# - codeium.codeium
ports:
# portainer port
- port: 8080
onOpen: ignore
# vite port
- port: 5173
onOpen: ignore
visibility: public
# project port
- port: 8000
onOpen: open-browser
# mailhog port
- port: 8025
onOpen: open-browser