Before you proceed, you will need to install Ansible (https://www.ansible.com/).
- Create a file called
hosts
with the following contents:
[otw]
[[SERVER_NAME]] ansible_ssh_user=[[SERVER_USER]]
Where SERVER_NAME
and SERVER_USER
are the server DNS host and ssh user for the web server.
-
Make a copy of
variables.yml.example
asvariables.yml
and fill it in with the details of the site you're creating. -
Run
$ cd <root of this repo>
$ ansible-playbook scripts/deploy-site.yml -i scripts/hosts --extra-vars "@scripts/variables.yml"
gem install bundler:1.15.3
bundle install
rackup -o 0.0.0.0 -p 9292 config.ru