From 1f1360461332970213ce83d059a9f67d34a8b43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20=C3=85ne?= Date: Thu, 18 Aug 2016 22:49:58 +0200 Subject: [PATCH] Add script for starting dev server with SQLite. --- .gitignore | 1 + dev.sh | 3 +++ pvv.sql | 9 +++++++++ 3 files changed, 13 insertions(+) create mode 100644 .gitignore create mode 100755 dev.sh create mode 100644 pvv.sql diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b1dffd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.sqlite diff --git a/dev.sh b/dev.sh new file mode 100755 index 0000000..21963b7 --- /dev/null +++ b/dev.sh @@ -0,0 +1,3 @@ +#!/bin/sh +which -s sqlite3 && test \! -e pvv.sqlite && sqlite3 pvv.sqlite < pvv.sql +php -S [::]:1080 -t www/ diff --git a/pvv.sql b/pvv.sql new file mode 100644 index 0000000..cd70a8e --- /dev/null +++ b/pvv.sql @@ -0,0 +1,9 @@ + + +CREATE TABLE "events" ( +"name" TEXT, +"start" TEXT, +"stop" TEXT, +"organiser" TEXT, +"location" TEXT +);