-
Notifications
You must be signed in to change notification settings - Fork 15
/
.gitpod.yml
48 lines (43 loc) · 1.46 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
tasks:
- name: Setup environment and PHP/Composer dependencies
openMode: split-left
# Fix because of https://github.com/gitpod-io/gitpod/issues/16614
#before: sudo curl -o /usr/local/bin/docker-compose -fsSL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-$(uname -m)
init: |
cp .env.example .env &&
sed -i "s#APP_URL=http://localhost#APP_URL=$(gp url 8000)#g" .env
sed -i "s#GITPOD_VITE_URL=#GITPOD_VITE_URL=$(gp url 5173)#g" .env
sed -i "s#DB_HOST=.*\$#DB_HOST=127.0.0.1#g" .env
composer install --ignore-platform-reqs
php artisan key:generate
php artisan storage:link
git config --global --unset credential.helper
php artisan serve
- name: Install Node dependencies and run Vite
openMode: split-right
command: |
npm install
npm run dev
- name: Start DB
openMode: split-right
command: |
docker compose -f docker-compose.gitpod.yml up -d
ports:
- port: 3306
onOpen: ignore
name: MySQL Database Port
- port: 5173
onOpen: ignore
visibility: public
name: Node Server for Vite
# Configure vscode
vscode:
extensions:
- bmewburn.vscode-intelephense-client
- ms-azuretools.vscode-docker
- ecmel.vscode-html-css
- MehediDracula.php-namespace-resolver
- Equinusocio.vsc-community-material-theme
- EditorConfig.EditorConfig
- streetsidesoftware.code-spell-checker
- onecentlin.laravel-extension-pack