|
|
pirms 1 nedēļas | |
|---|---|---|
| app | pirms 1 nedēļas | |
| config | pirms 1 nedēļas | |
| database/migrations | pirms 1 nedēļas | |
| docker | pirms 1 nedēļas | |
| framework | pirms 1 nedēļas | |
| public | pirms 1 nedēļas | |
| resources | pirms 1 nedēļas | |
| storage | pirms 1 nedēļas | |
| tests | pirms 1 nedēļas | |
| .env.example | pirms 1 nedēļas | |
| .gitignore | pirms 1 nedēļas | |
| Dockerfile | pirms 1 nedēļas | |
| command.php | pirms 1 nedēļas | |
| composer.json | pirms 1 nedēļas | |
| composer.lock | pirms 1 nedēļas | |
| docker-compose.yml | pirms 1 nedēļas | |
| phpunit.xml | pirms 1 nedēļas | |
| readme.md | pirms 1 nedēļas | |
| server.php | pirms 1 nedēļas | |
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.