Skip to content

Instantly share code, notes, and snippets.

View artiwarahd's full-sized avatar

Artiwarah Damrongchai artiwarahd

  • OIVAN
  • Khon Kaen, Thailand
View GitHub Profile
### DigitalOcean Ubuntu 18.04 x64 + Rails 5 + Nginx + Unicorn + PostgreSQL9.6 + Capistrano 3
SSH into Root
$ ssh [email protected]
Change Root Password
$ passwd
@artiwarahd
artiwarahd / EDOC deploy steps
Created July 22, 2019 17:17
EDOC deploy steps
### Ubuntu 18.04 x64 + Rails 5 + Nginx + Unicorn + PostgreSQL9.6 + Capistrano 3
SSH to server
$ ssh <user>@xxx.xxx.xxx.xx
$ sudo chown <user>:<user> /var/www/
Generate public key
$ su - <user>
$ mkdir ~/.ssh