Browse Source

Simplify publishing to an NFS directory

master
Alex Feldman-Crough 2 years ago
parent
commit
df56445b3a
  1. 1
      .buildpacks
  2. 1
      .envrc
  3. 14
      bin/publish
  4. 7
      static.json

1
.buildpacks

@ -1 +0,0 @@
https://github.com/heroku/heroku-buildpack-static.git

1
.envrc

@ -0,0 +1 @@
PATH_add bin

14
bin/publish

@ -0,0 +1,14 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE}")/.."
DESTINATION="${1:-/net/srv/static/www/owlnevertell.com}"
if [ -d "$DESTINATION" ]
then
cp -Pf index.html owl-never-tell.jpg "$DESTINATION"
else
printf -- '\e[31m----> The destination directory %s does not exist.\e[m\n' "$DESTINATION" >&2
exit 1
fi

7
static.json

@ -1,7 +0,0 @@
{
"root": "./",
"routes": {
"/**": "index.html",
"/owl-never-tell.jpg": "owl-never-tell.jpg"
}
}
Loading…
Cancel
Save