Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tyler36/lara-gitpod
https://github.com/tyler36/lara-gitpod
gitpod laravel php
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tyler36/lara-gitpod
- Owner: tyler36
- Created: 2022-06-21T07:43:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-22T02:05:43.000Z (over 2 years ago)
- Last Synced: 2024-10-19T04:31:29.851Z (3 months ago)
- Topics: gitpod, laravel, php
- Language: PHP
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel with Gitpod
- [Setups](#setups)
- [PHP serve and Gitpod](#php-serve-and-gitpod)## Setups
### PHP serve and Gitpod
- `.gitpod.yml` to serve Laravel via Laravel serve
```yml
# .gitpod.yml
ports:
# Laravel server
- port: 8000
onOpen: open-previewtasks:
- init: >
cp .env.example .env &&
sed -i "s|APP_URL=|APP_URL=${GITPOD_WORKSPACE_URL}|g" .env &&
sed -i "s|APP_URL=https://|APP_URL=https://8000-|g" .env &&
composer install &&
php artisan key:generate
command: >
php -S 0.0.0.0:8000 -t public
```