lasthourcloud/.gitpod.yml

66 lines
2.2 KiB
YAML
Raw Permalink Normal View History

2023-04-03 08:31:04 +00:00
tasks:
2023-04-25 06:53:40 +00:00
- name: Setup Spin environment and Composer dependencies
2023-04-03 08:31:04 +00:00
# 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 &&
2023-04-25 07:04:45 +00:00
sed -i "s#APP_URL=http://localhost#APP_URL=$(gp url 8000)#g" .env
2023-04-25 06:53:40 +00:00
sed -i "s#USERID=#USERID=33333#g" .env
sed -i "s#GROUPID=#GROUPID=33333#g" .env
2023-04-03 08:31:04 +00:00
composer install --ignore-platform-reqs
2023-04-25 06:46:36 +00:00
./vendor/bin/spin up -d
./vendor/bin/spin exec -u webuser coolify php artisan key:generate
./vendor/bin/spin exec -u webuser coolify php artisan storage:link
./vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --seed
2024-03-02 02:37:31 +00:00
cat .jesus-is-king
2023-04-25 06:53:40 +00:00
gp sync-done spin-is-ready
2023-04-03 08:31:04 +00:00
- name: Install Node dependencies and run Vite
command: |
echo "Waiting for Sail environment to boot up."
2023-04-25 06:53:40 +00:00
gp sync-await spin-is-ready
2023-04-25 06:46:36 +00:00
./vendor/bin/spin exec vite npm install
./vendor/bin/spin exec vite npm run dev
2023-04-03 08:31:04 +00:00
2023-04-03 09:02:03 +00:00
- name: Laravel Queue Worker, listening to code changes
command: |
echo "Waiting for Sail environment to boot up."
2023-04-25 06:53:40 +00:00
gp sync-await spin-is-ready
2023-04-25 06:46:36 +00:00
./vendor/bin/spin exec -u webuser coolify php artisan queue:listen
2023-04-03 09:02:03 +00:00
2023-04-03 08:31:04 +00:00
ports:
2023-04-25 06:53:40 +00:00
- port: 5432
2023-04-03 08:31:04 +00:00
onOpen: ignore
2023-04-25 06:53:40 +00:00
name: PostgreSQL
visibility: public
2023-04-03 08:31:04 +00:00
- port: 5173
onOpen: ignore
visibility: public
name: Node Server for Vite
2023-04-25 06:53:40 +00:00
- port: 8000
onOpen: ignore
visibility: public
name: Coolify
2023-04-03 08:31:04 +00:00
# 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
2023-04-25 07:17:18 +00:00
- PKief.material-icon-theme
2023-04-25 07:23:08 +00:00
- cierra.livewire-vscode
- lennardv.livewire-goto-updated
- bradlc.vscode-tailwindcss
- heybourn.headwind
- adrianwilczynski.alpine-js-intellisense
- amiralizadeh9480.laravel-extra-intellisense
- shufo.vscode-blade-formatter