Add short script to "run" project

Allows to manually test the project by opening urls in browser or
calling via curl, etc.
This commit is contained in:
Daniel Siepmann 2023-02-23 14:28:13 +01:00
parent a35d7502ca
commit 787be4ed2c
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -23,6 +23,15 @@ let
./vendor/bin/php-cs-fixer fix --dry-run --allow-risky=yes
'';
};
projectRun = pkgs.writeShellApplication {
name = "project-run";
runtimeInputs = [
pkgs.php82
];
text = ''
php -S 127.0.0.1:8080 -t public
'';
};
projectDeploy = pkgs.writeShellApplication {
name = "project-deploy";
runtimeInputs = [
@ -66,6 +75,7 @@ in pkgs.mkShell {
pkgs.php82Packages.composer
projectInstall
projectTest
projectRun
projectDeploy
];