|
@@ -1,15 +1,15 @@
|
|
|
# Digital Ocean deployment
|
|
# 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
|
|
```sh
|
|
|
# Login and change password
|
|
# Login and change password
|
|
|
ssh root@<IP>
|
|
ssh root@<IP>
|
|
|
|
|
|
|
|
# Add a new user "MAX" and give him a password
|
|
# Add a new user "MAX" and give him a password
|
|
|
-adduser <MAX>
|
|
|
|
|
|
|
+adduser MAX
|
|
|
# Give "MAX" sudo rights
|
|
# Give "MAX" sudo rights
|
|
|
-gpasswd -a <MAX> sudo
|
|
|
|
|
|
|
+gpasswd -a MAX sudo
|
|
|
|
|
|
|
|
# Change "PermitRootLogin yes" to "PermitRootLogin no"
|
|
# Change "PermitRootLogin yes" to "PermitRootLogin no"
|
|
|
nano /etc/ssh/sshd_config
|
|
nano /etc/ssh/sshd_config
|