Setting up EC2 instance
Add ssh keys to
.ssh/autohorized_keys
for standard userubuntu
Install Ruby (see below)
Install and configure Nginx (see below)
Install Ruby
Ruby is installed under /usr/local/lib
with each ruby version in it's own directory
Install dependencies:
Add the the current user ubuntu
to the staff
group
Now log out and log back in for new group to take effect.
Install the latest version of ruby-install
Installation instructions for version 0.6.1 is replicated here
Installing ruby 2.4.0
We will use /usr/local/lib/ruby-2.4.0
Prepare the directory
Install ruby
And finally install bundler
Install and configure Nginx
Install nginx
Get the nginx configuration files and copy them in place
Restart the nginx server
Install SSL certificates using certbot
Use the instructions from certbot
As the mail address for notifications, use devops@greater.finance
Add HTTP2.0 capability by following these instructions.
Last updated