Skip to content

Commit

Permalink
Update deploy and test scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
23Skidoo committed Aug 18, 2017
1 parent 2f327db commit e3f8413
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 7 additions & 3 deletions deploy
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ set -e
# $ authbind ~/bin/homepage-server -p 80
# C-a d

SERVER_PATH=dist-newstyle/build/x86_64-linux/ghc-8.2.1/server-0.1/build/server/server

cd server
#cabal build
#strip -s dist/build/server/server
rsync -e ssh -varuzP dist-newstyle/build/x86_64-linux/ghc-8.0.2/server-0.1/build/server/server coldwaste:bin/homepage-server
cabal new-build
strip -s $SERVER_PATH
rsync -e ssh -varuzP $SERVER_PATH coldwaste:bin/homepage-server
cd ..

cd content
cabal new-run site -- clean
cabal new-run site -- build
rm _site/js || true
ln -s ../js _site/js
rsync -e ssh -varuzPL _site/ coldwaste:www/static
Expand Down
5 changes: 2 additions & 3 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
set -e

cd content
make all
cabal new-run site -- build
ln -s ../js _site/js
cd ..

cd server
# cabal build
./dist/build/server/server
cabal new-run server

0 comments on commit e3f8413

Please sign in to comment.