Dockerized for dev purposes
This commit is contained in:
16
ReadMe.md
Normal file
16
ReadMe.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# **Dev Installation Instructions**
|
||||
|
||||
1. Create a .env file from .env.example and set database config as such
|
||||
```
|
||||
DB_CONNECTION=pgsql
|
||||
DB_HOST=postgres
|
||||
DB_PORT=5432
|
||||
DB_DATABASE=dredge_tours
|
||||
DB_USERNAME=dredge
|
||||
DB_PASSWORD=dredge123
|
||||
```
|
||||
2. Run `docker compose up -d --build` on first use and `docker compose up -d` on subsequent uses
|
||||
3. With containers running, run `docker compose run php php artisan app:init`
|
||||
|
||||
4. Run `docker compose exec php npm run dev` to start a hot reload environment, or `docker compose exec php npm run build` for a static, manual reload
|
||||
|
||||
Reference in New Issue
Block a user