-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.gitpod.yml
48 lines (43 loc) · 1.62 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: Get Composer dependencies for the first time (we don't have Sail dependencies at this moment, so we use Composer Docker image)
# 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)
echo "alias dc=docker-compose" >> ~/.bash_aliases
init: |
docker run --rm -u "$(id -u):$(id -g)" -v "$(pwd):/app" -w /app composer:2 composer install --ignore-platform-reqs
gp sync-done composer-dependencies
- name: Setup Sail environment
init: |
cp .env.example .env
sed -i "s#APP_URL=http://localhost#APP_URL=$(gp url 80)#g" .env
sed -i "s#GITPOD_VITE_URL=#GITPOD_VITE_URL=$(gp url 5174)#g" .env
- name: Execute Laravel Sail
command: >
gp sync-await composer-dependencies &&
docker-compose up -d &&
docker-compose exec app bash -c "php artisan key:generate && php artisan storage:link" &&
gp sync-done sail-up
- name: Get composer deps
command: >
gp sync-await sail-up &&
npm install &&
npm run dev
ports:
- port: 5174
onOpen: ignore
visibility: public
name: Vite Server
# Configure vscode
vscode:
extensions:
- bmewburn.vscode-intelephense-client
- ikappas.composer
- ms-azuretools.vscode-docker
- ecmel.vscode-html-css
- MehediDracula.php-namespace-resolver
- wmaurer.change-case
- Equinusocio.vsc-community-material-theme
- EditorConfig.EditorConfig
- streetsidesoftware.code-spell-checker
- rangav.vscode-thunder-client