Commit 13cfbc0950b2f01cf961530f12a3cc3959a35d98
Improve default advice for deploying
Andre Staltz committed on 2/23/2017, 1:49:13 PMParent: 87ec85874fbadaeb74527819de4509edb9c3b662
Files changed
README.md | changed |
README.md | ||
---|---|---|
@@ -19,15 +19,8 @@ | ||
19 | 19 … | ## How to deploy |
20 | 20 … | |
21 | 21 … | You will need a server that supports a TCP socket over port 80. This means [Heroku](https://heroku.com/) or [Zeit Now](https://zeit.co/now) will *not* work. Recommended services for servers-on-demand: [Digital Ocean Docker Droplet](https://www.digitalocean.com/products/one-click-apps/docker/), [UpCloud](https://upcloud.com/), [Amazon LightSail](https://amazonlightsail.com/), [Vultr](https://vultr.com/), [Linode](https://www.linode.com), etc. |
22 | 22 … | |
23 | -1. Acess your server via shell (e.g. SSH) | |
24 | -2. `git clone https://github.com/staltz/easy-ssb-pub.git` | |
25 | -3. `cd easy-ssb-pub` | |
26 | -4. `PUB_URL=publicurltoyourserv.er docker-compose up -d` | |
27 | - | |
28 | -### OR | |
29 | - | |
30 | 23 … | 1. Access your server via shell (e.g. SSH) |
31 | 24 … | 2. `docker pull staltz/easy-ssb-pub` |
32 | 25 … | 3. `docker run -e "PUB_URL=publicurltoyourserv.er" -p 80:80 -m 450M --memory-swap 1G --restart=unless-stopped --name ssb-pub -d staltz/easy-ssb-pub` |
33 | 26 … | |
@@ -40,8 +33,15 @@ | ||
40 | 33 … | _`docker run` creates a new container (and server key) each time. This prevents existing contacts from successfully completing the handshake._ |
41 | 34 … | |
42 | 35 … | ### OR |
43 | 36 … | |
37 … | +1. Acess your server via shell (e.g. SSH) | |
38 … | +2. `git clone https://github.com/staltz/easy-ssb-pub.git` | |
39 … | +3. `cd easy-ssb-pub` | |
40 … | +4. `PUB_URL=publicurltoyourserv.er docker-compose up -d` | |
41 … | + | |
42 … | +### OR | |
43 … | + | |
44 | 44 … | 1. Access your server via shell (e.g. SSH) |
45 | 45 … | 2. `apt-get install -y libleveldb-dev curl libc6 libcurl3 zlib1g libtool autoconf` |
46 | 46 … | 3. Install nvm: `curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash` |
47 | 47 … | 4. Restart the shell |
Built with git-ssb-web