How to Deploy a Rails App to DigitalOcean with Ubuntu 14.04, Phusion Passenger & Nginx, Postgres, and Capistrano
- Choose Server Image
- Choose Size (if this is a hobby app you can probably get away with the smallest)
You can do this with a virtual box (ex: Vagrant & VirtualBox), an EC2 instance on AWS, a Droplet on Digital Ocean, and a variety of other ways/services.
~/.ssh
directoryssh -i "name_of_my_key_pair.pem" ubuntu@ec2-54-84-207-182.compute-1.amazonaws.com
Nginx is a webserver but also can act as a reverse proxy (sits in front of another server), a load balancer, or a load balancer. Read more here
sudo apt-get update
& sudo apt-get install nginx
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
/etc/nginx/nginx.conf
.const checks = document.getElementsByClassName('js-mark-as-fixed') | |
for (let i = 0; i < checks.length; i++) { checks[i].click() } |
const immutableArray = [1, 2, 3, 4] | |
const index = 2 | |
const newArrayLess3 = [ | |
...immutableArray.slice(0, index), | |
...immytableArray.slice(index + 1), | |
] | |
# => newArrayLess3 = [1, 2, 4] | |
# => immutableArray = [1, 2, 3, 4] |
<!-- Learn More Text Element --> | |
<div class="f__center"> | |
<div class="sp__4"><br /></div> | |
<h2 class="c__white">Ready to learn more?</h2> | |
<a class="btn btn__primary" href="#">Request A Demo</a> | |
<div class="sp__4"><br /></div> | |
</div> | |
<!-- End Learn More Text Element --> | |
<div><br /></div> |
<script> | |
var action = {{DLV-custom-event-action}}; | |
if (action === 'viewed') { | |
console.log("LOG MKETO PAGE VIEW") | |
// Munchkin.munchkinFunction('visitWebPage', { 'url': {{Page URL}} }); | |
}; | |
if (action === 'clicked') { | |
console.log("LOG MKETO CLICK") |