2023-04-03 08:31:04 +00:00
|
|
|
tasks:
|
|
|
|
- name: Setup Sail environment and Composer dependencies
|
|
|
|
# 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 80)#g" .env
|
|
|
|
sed -i "s#GITPOD_VITE_URL=#GITPOD_VITE_URL=$(gp url 5173)#g" .env
|
|
|
|
composer install --ignore-platform-reqs
|
|
|
|
./vendor/bin/sail up -d
|
|
|
|
./vendor/bin/sail php artisan key:generate
|
|
|
|
./vendor/bin/sail php artisan storage:link
|
2023-04-03 09:02:03 +00:00
|
|
|
./vendor/bin/sail php artisan migrate:fresh --seed
|
2023-04-03 08:31:04 +00:00
|
|
|
cat .coolify-logo
|
|
|
|
gp sync-done sail-is-ready
|
|
|
|
|
|
|
|
- name: Install Node dependencies and run Vite
|
|
|
|
command: |
|
|
|
|
echo "Waiting for Sail environment to boot up."
|
|
|
|
gp sync-await sail-is-ready
|
|
|
|
./vendor/bin/sail npm install
|
|
|
|
./vendor/bin/sail npm run dev
|
|
|
|
|
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."
|
|
|
|
gp sync-await sail-is-ready
|
|
|
|
./vendor/bin/sail php artisan queue:listen
|
|
|
|
|
2023-04-03 08:31:04 +00:00
|
|
|
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
|
|
|
|
- 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
|