Browse Source

Simplify publishing to an NFS directory

master
Alex Feldman-Crough 1 year ago
parent
commit
df56445b3a
4 changed files with 15 additions and 8 deletions
  1. +0
    -1
      .buildpacks
  2. +1
    -0
      .envrc
  3. +14
    -0
      bin/publish
  4. +0
    -7
      static.json

+ 0
- 1
.buildpacks View File

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

+ 1
- 0
.envrc View File

@ -0,0 +1 @@
PATH_add bin

+ 14
- 0
bin/publish View File

@ -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

+ 0
- 7
static.json View File

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

Loading…
Cancel
Save