Add script for starting dev server with SQLite.

css
Jørn Åne 2016-08-18 22:49:58 +02:00
parent 72b3a1f535
commit 1f13604613
3 changed files with 13 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.sqlite

3
dev.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
which -s sqlite3 && test \! -e pvv.sqlite && sqlite3 pvv.sqlite < pvv.sql
php -S [::]:1080 -t www/

9
pvv.sql Normal file
View File

@ -0,0 +1,9 @@
CREATE TABLE "events" (
"name" TEXT,
"start" TEXT,
"stop" TEXT,
"organiser" TEXT,
"location" TEXT
);