-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
38 lines (26 loc) · 834 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
build:
stack build --fast -j4
build-watch:
stack build --fast --file-watch
copy-bins:
stack build --copy-bins --local-bin-path bin
echo-warn:
echo "Testing in progress"
test: echo-warn
stack test -j4
static:
touch Settings/StaticFiles.hs
ghci:
stack ghci haskell-serbia:lib
dev:
stack exec -- yesod devel
ghci-object:
stack ghci --ghci-options -fobject-code haskell-serbia:lib
docker-run:
docker run -it -p 3000:3000 haskell-serbia-docker /usr/local/bin/haskell-serbia-exe
copy-remote:
scp -i ~/Documents/haskell-serbia/haskell-serbia.pem.txt ~/code/haskell-serbia/bin/haskell-serbia ubuntu@ec2-34-195-52-222.compute-1.amazonaws.com:/home/ubuntu
deploy-bin: build copy-bins
sudo ./deploy.sh
ssh-aws:
ssh -i ~/Documents/haskell-serbia/haskell-serbia.pem.txt ubuntu@ec2-34-195-52-222.compute-1.amazonaws.com