Deploy A Django Service to a Remote VM

1 · En Zhou · Oct. 2, 2019, 12:25 a.m.
Create an User on remote VMlogin to the remote vmrun: adduser usernameadd password and detailsadd the user to sudo group: adduser username sudoUpdate remote VM hostnameset new hostname: hostnamectl set-hostname new_hostnameupdate the /etc/hosts file:open the file with vim: vim /etc/hostsadd this line vm_ip_address new_hostname right below 127.0.0.1 localhostEnable ssh Key Based Logincreate a directory on the remote vm: mkdir -p ~/.sshgenerate ssh-key on local machine: ssh-keygen -b 4096cop...