dokku deploy stuff

This commit is contained in:
Cadey Ratio 2017-05-23 12:47:17 -07:00
parent 66451156f8
commit 8b878e6662
2 changed files with 6 additions and 1 deletions

3
box.rb
View File

@ -28,6 +28,7 @@ files = [
"main.go", "main.go",
"rice-box.go", "rice-box.go",
"rss.go", "rss.go",
"run.sh"
] ]
files.each { |x| put x } 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[ rm -rf /root/go /site/backend /root/sdk /site/*.go ]
run %q[ apk del git go1.8.1 ] run %q[ apk del git go1.8.1 ]
cmd "/site/site" cmd "/site/run.sh"
flatten flatten
tag "xena/christine.website" tag "xena/christine.website"

4
run.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /site
./site