Added composer dev script

This commit is contained in:
Filip Znachor 2023-11-02 11:39:42 +01:00
parent 29b48e8d63
commit a338deefae
3 changed files with 7 additions and 3 deletions

View file

@ -58,4 +58,4 @@ Once you've completed these steps, you're all set to start using Uptime Status.
## Development
If you're interested in developing Uptime Status or testing it on your local device, make sure you have PHP installed, and run the `./dev.sh` script to set up a local PHP server.
If you're interested in developing Uptime Status or testing it on your local device, make sure you have PHP installed, and run `composer run dev` to set up a local PHP server.

View file

@ -1,5 +1,10 @@
{
"require": {
"twig/twig": "^3.0"
}
},
"scripts": {
"dev" : [
"php -S localhost:8000 -t public"
]
}
}

1
dev.sh
View file

@ -1 +0,0 @@
cd public && php -S 127.0.0.1:3000