Skip to content

Commit 20f1e3c

Browse files
committed
Added Heroku deployment container update steps
1 parent 7f93cde commit 20f1e3c

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

heroku/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ RUN rm /bin/sh && ln -s /bin/bash /bin/sh && \
2323
mkdir /logs && chmod 0777 /logs && \
2424
ln -s /dev/stderr /logs/httpd.log
2525

26-
CMD if [ -e etc/server ]; then rm -rf etc/server ; fi && \
27-
FAASSHELL_SVC_PORT=$PORT swipl -q -l src/faasshell_svc.pl -g main -t halt
26+
# The web process must listen for HTTP traffic on $PORT, which is set by Heroku.
27+
CMD FAASSHELL_SVC_PORT=$PORT swipl -q -l src/faasshell_svc.pl -g main -t halt

heroku/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Heroku deployment steps
22

3+
## Initial Install
4+
35
```sh
46
ubuntu@xenial:~/faasshell/heroku[master]$ heroku login
57

@@ -16,6 +18,22 @@ ubuntu@xenial:~/faasshell/heroku[master]$ heroku container:push web --app protec
1618
ubuntu@xenial:~/faasshell/heroku[master]$ heroku container:release web --app protected-depths-49487
1719

1820
ubuntu@xenial:~/faasshell/heroku[master]$ curl https://protected-depths-49487.herokuapp.com/ -u $DEMO
21+
{"version":"$Id rev.2018-07-08.2e2c6c4 $"}
1922

2023
ubuntu@xenial:~/faasshell/heroku[master]$ heroku logs --app protected-depths-49487 -t
2124
```
25+
26+
## Update Install
27+
28+
```sh
29+
ubuntu@xenial:~/faasshell/heroku[master]$ heroku login
30+
31+
ubuntu@xenial:~/faasshell/heroku[master]$ heroku container:login
32+
33+
ubuntu@xenial:~/faasshell/heroku[master]$ heroku container:push web --app protected-depths-49487
34+
35+
ubuntu@xenial:~/faasshell/heroku[master]$ heroku container:release web --app protected-depths-49487
36+
37+
ubuntu@xenial:~/faasshell/heroku[master]$ curl https://protected-depths-49487.herokuapp.com/ -u $DEMO
38+
{"version":"$Id rev.2018-11-16.1a84b0a $"}
39+
```

0 commit comments

Comments
 (0)