Ship swagger files and mount them on /swagger

This commit is contained in:
Antoine Gersant 2019-04-07 18:54:53 -07:00
parent a4578194f0
commit 32a808b962
4 changed files with 25 additions and 7 deletions

View file

@ -3,7 +3,7 @@ echo "Creating output directory"
mkdir -p release/tmp
echo "Copying package files"
cp -r web src migrations Cargo.toml Cargo.lock res/unix/Makefile release/tmp
cp -r web docs/swagger src migrations Cargo.toml Cargo.lock res/unix/Makefile release/tmp
echo "Creating tarball"
POLARIS_VERSION=$(grep -m 1 ^version Cargo.toml | awk '{print $3}' | tr -d '"\r\n')