|
|
1 week ago | |
|---|---|---|
| app | 1 week ago | |
| config | 1 week ago | |
| database/migrations | 1 week ago | |
| docker | 1 week ago | |
| framework | 1 week ago | |
| public | 1 week ago | |
| resources | 1 week ago | |
| storage | 1 week ago | |
| tests | 1 week ago | |
| .env.example | 1 week ago | |
| .gitignore | 1 week ago | |
| Dockerfile | 1 week ago | |
| command.php | 1 week ago | |
| composer.json | 1 week ago | |
| composer.lock | 1 week ago | |
| docker-compose.yml | 1 week ago | |
| phpunit.xml | 1 week ago | |
| readme.md | 1 week ago | |
| server.php | 1 week ago | |
To run the local development server, try:
export PHP_ENV=prod && php -S 127.0.0.1:8000 -t .
To make requests with cURL, try:
curl -X DELETE http://127.0.0.1:8000/old-home
docker compose up -d --build
This starts two services:
33060 (only used if DB_CONNECTION=mysql)The default database connection is SQLite (database/database.sqlite), configured via DB_CONNECTION in .env / docker-compose.yml. On first boot the app container automatically creates the SQLite file with the correct permissions and runs migrations. To switch to MySQL instead, set DB_CONNECTION=mysql in docker-compose.yml.
To run migrations manually:
docker compose exec app php command.php migrate
docker compose exec app php command.php migrate --fresh # drops all tables first
A SQLite admin UI is available at http://localhost:8081, password admin (change it via the PHPLITEADMIN_PASSWORD environment variable in docker-compose.yml). It's a development-only tool — don't expose port 8081 outside your local machine.
Powered by TurnKey Linux.