Skip to content

Commit

Permalink
Finished Digital Ocean explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Dec 5, 2015
1 parent df4415b commit 8bc1c27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deployment/Digital-Ocean.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Digital Ocean deployment

The following script sets everything up so that the application can be deployed on a [Digital Ocean](https://www.digitalocean.com/) droplet with Ubuntu 14.04 and the Apache web server. Of course you should go through it and modify the parts that are unique to your application, I've marked them with ``<>``. You will also have to change the ``app.wsgi`` and the ``Flask-Boilerplate.conf`` files, just open the files and replace the obvious stuff.
The following script sets everything up so that the application can be deployed on a [Digital Ocean](https://www.digitalocean.com/) droplet with Ubuntu 14.04 and the Apache web server. Of course you should go through it and modify the parts that are unique to your application (the username and the application GitHub URL/folder). You will also have to change the ``app.wsgi`` and the ``Flask-Boilerplate.conf`` files, just open the files and replace the obvious stuff.

```sh
# Login and change password
ssh root@<IP>

# Add a new user "MAX" and give him a password
adduser <MAX>
adduser MAX
# Give "MAX" sudo rights
gpasswd -a <MAX> sudo
gpasswd -a MAX sudo

# Change "PermitRootLogin yes" to "PermitRootLogin no"
nano /etc/ssh/sshd_config
Expand Down

0 comments on commit 8bc1c27

Please sign in to comment.