Create a new droplet: https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets.
Syncing vs code with droplet: https://github.com/liximomo/vscode-sftp
> .vscode/sftp.json
{
"context": ".",
"protocol": "sftp",
"host": "111.111.111.111",
"port": 22,
"username": "root",
"remotePath": "/var/www/vhosts/wordpress/",
"connectTimeout": 10000,
"uploadOnSave": false,
"downloadOnOpen": false,
"syncMode": "update",
"ignore": [],
"privateKeyPath": "/home/gemma/.ssh/somekey",
"watcher": {
"files": "**/*",
"autoUpload": true,
"autoDelete": true
}
}Setting up docker: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04
Install Nginx: https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04
PHP and Nginx https://linuxconfig.org/basic-php-7-and-nginx-configuration-on-ubuntu-16-04-linux
Mongo https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
Mongo - PHP Driver: http://php.net/manual/en/mongodb.installation.pecl.php
Ubuntu 16.04
sudo apt-get install libcurl4-openssl-dev pkg-config libssl-dev libsslcommon2-dev
sudo pecl install mongodb
add extension=mongodb.so in fpm and cli:
sudo vim /etc/php/7.0/fpm/conf.d/30-mongodb.ini
sudo vim /etc/php/7.0/cli/conf.d/30-mongodb.ini
Restart service:
sudo systemctl restart php7.0-fpm
sudo systemctl reload nginx

