forked from serversideup/financial-freedom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
70 lines (66 loc) · 1.79 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
61
62
63
64
65
66
67
68
69
70
image:
file: .gitpod.Dockerfile
tasks:
- name: Build & Start
before: |
(
if [ ! -f .env ]; then
cp .env.example .env
sed -i 's/APP_ENV=production/APP_ENV=local/' .env
sed -i 's/APP_DEBUG=false/APP_DEBUG=true/' .env
fi
)
init: |
(
SPIN_USER_ID=$(id -u)
SPIN_GROUP_ID=$(id -g)
bash -c "$(curl -fsSL https://raw.githubusercontent.com/serversideup/spin/main/tools/install.sh)" "" --force
spin run --user "$SPIN_USER_ID:$SPIN_GROUP_ID" php composer install
spin run node yarn install
spin run php php artisan key:generate
)
command: spin up --build
openMode: split-right
- name: Node Watch & Migrations.
init: |
clear
spin exec php php artisan migrate
gp sync-done node
command: spin run node yarn dev
openMode: split-right
- name: Terminal & Welcome
init: |
clear
echo "⚡️ Waiting for services to start..."
gp sync-await node
clear
echo "👋 Welcome $GITPOD_GIT_USER_NAME!"
echo "🚀 Your development environment is available at:"
gp url 443
while [ ! -f ./public/hot ]; do
sleep 1
done
gp preview $(gp url 443)
openMode: split-right
ports:
- port: 80
onOpen: ignore
- port: 443
onOpen: notify
name: HTTPS
protocol: https
description: Web server port
- port: 5173
onOpen: ignore
name: Vite
protocol: https
description: Vite server port
visibility: public
- port: 8025
name: Mailtrap
description: Access trapped SMTP emails.
onOpen: ignore
- port: 8080
name: Traefik
description: Traefik Dashboard
onOpen: ignore