This website works better with JavaScript.
Home
Help
Register
Sign In
jafc
/
owlnevertell
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Simplify publishing to an NFS directory
master
Alex Feldman-Crough
1 year ago
parent
f0c1b06e29
commit
df56445b3a
4 changed files
with
15 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
.buildpacks
+1
-0
.envrc
+14
-0
bin/publish
+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"
}
}
Write
Preview
Loading…
Cancel
Save