Add little harness to test against a new project without accidentally committing junk

This commit is contained in:
Lucien Greathouse
2018-12-17 17:05:58 -08:00
parent 65e551c5cf
commit 1176c9bbf1
2 changed files with 13 additions and 0 deletions

1
server/.gitignore vendored
View File

@@ -1,2 +1,3 @@
/target/
/scratch/
**/*.rs.bk

View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -e
if [ -d "scratch" ]
then
rm -rf scratch
fi
mkdir -p scratch
cp -r ../test-projects/test-model scratch
cargo run -- serve scratch/test-model