Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ DB_USERNAME=root
DB_PASSWORD=

GITPOD_VITE_URL=

APP_SERVICE=webapp
19 changes: 19 additions & 0 deletions .env.gitpod
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
APP_NAME=devPT
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_PORT=8080

DB_CONNECTION=pgsql
DB_HOST=postgres
DB_PORT=5432
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

GITPOD_VITE_URL=

APP_SERVICE=webapp
USERID=
GROUPID=
15 changes: 8 additions & 7 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,26 @@ tasks:

- 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
cp .env.gitpod .env
sed -i "s#APP_URL=http://localhost#APP_URL=$(gp url 8080)#g" .env
sed -i "s#GITPOD_VITE_URL=#GITPOD_VITE_URL=$(gp url 5173)#g" .env
sed -i "s#USERID=#USERID=$(id -u)#g" .env
sed -i "s#GROUPID=#GROUPID=$(id -g)#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" &&
docker-compose exec webapp 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
docker-compose exec webapp bash -c "npm install && npm run dev"

ports:
- port: 5174
- port: 5173
onOpen: ignore
visibility: public
name: Vite Server
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.