aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2017-05-23 12:47:17 -0700
committerChristine Dodrill <me@christine.website>2017-05-23 12:47:17 -0700
commit8b878e6662fa293175449d07b60245e224300361 (patch)
tree1faeb4bb5439c168ac21d4a67aa3ba93ae56242e
parent66451156f8341dd2b790ea085e05fcf640ca62f5 (diff)
downloadxesite-8b878e6662fa293175449d07b60245e224300361.tar.xz
xesite-8b878e6662fa293175449d07b60245e224300361.zip
dokku deploy stuff
-rw-r--r--box.rb3
-rwxr-xr-xrun.sh4
2 files changed, 6 insertions, 1 deletions
diff --git a/box.rb b/box.rb
index 97486a6..87939da 100644
--- a/box.rb
+++ b/box.rb
@@ -28,6 +28,7 @@ files = [
"main.go",
"rice-box.go",
"rss.go",
+ "run.sh"
]
files.each { |x| put x }
@@ -41,7 +42,7 @@ run "cd /site && go1.8.1 build -v"
run %q[ rm -rf /root/go /site/backend /root/sdk /site/*.go ]
run %q[ apk del git go1.8.1 ]
-cmd "/site/site"
+cmd "/site/run.sh"
flatten
tag "xena/christine.website"
diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..1bf4f0d
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd /site
+./site