Steps to get droplet up and running with just Ubuntu 16.04
- Create non-root user
adduser production
usermod -aG sudo production
ssh-keygen
cat ~/.ssh/id_rsa.pub| @resource = Training::Resource.find(params[:id]) | |
| if params[:attachment_id] | |
| @resource.files.find_by_id(params[:attachment_id]).purge | |
| flash[:success] = 'The resource has been deleted' | |
| redirect_to edit_trainings_resource_path(@resource) | |
| else | |
| @resource.destroy | |
| flash[:success] = 'The resource has been deleted' | |
| redirect_to trainings_resources_path |
Steps to get droplet up and running with just Ubuntu 16.04
adduser production
usermod -aG sudo production
ssh-keygen
cat ~/.ssh/id_rsa.pubA build template for static sites that is:
This setup is for this template. It runs Rails in API mode, Vue + Webpack for view layer and it's all served from the same root directory.
Steps to get droplet up and running with just Ubuntu 16.04 (i.e. not a "one-click" install)
adduser production
usermod -aG sudo production