Skip to content
Contains ansible/vagrant deployment stuff for dota2rails and alacrity repos
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
alacrity @ 9df320d
ansible
dota2rails @ cb880fa
matchurls @ 077da14
.gitignore
.gitmodules
LICENSE
README.md
Vagrantfile
deploy_prod.sh
deploy_vm.sh

README.md

dota2rails-deploy

Contains ansible/vagrant deployment stuff for dota2rails and alacrity repos

Local:

vagrant up --no-provision

DigitalOcean (see notes for other steps):

vagrant up --no-provision --provider=digital_ocean

Notes:

  • If you vagrant up, vagrant destroy, vagrant up, you will have the wrong ssh key for the new servers still in your known_hosts, remove it with ssh-keygen -f ~/.ssh/known_hosts -R 10.0.0.2 and 10.0.0.3

  • If you vagrant destroy, also delete node_modules from the matchurls repo, so they are reinstalled from scratch correctly. Perhaps I should change provisioning to download from github rather than using submodules and synced/shared folders?

  • Ansible uses a forwarded ssh agent to access github repos (for installing ruby) on the virtual machines, so you must be running this from a machine that has an ssh key registered with github.com and with password already input. If provisioning fails on talking to github, run ssh -T git@github.com locally and enter your passphrase to save it to your keyring.

  • To use this with DigitalOcean, see https://www.digitalocean.com/community/articles/how-to-use-digitalocean-as-your-provider-in-vagrant-on-an-ubuntu-12-10

Places you need to enter your info (in the ansible folder):

  • group_vars/all: s3 credentials and steam api key

  • group_vars/matchurls: steam account login info and steam guard code

  • group_vars/mqservers: your email sending account

  • whatever other values in group_vars or hosts or Vagrantfile that you wish to change

Things to confirm are running:

  • nginx

  • unicorn

  • app.js (via nodejs forever)

  • celery

  • rabbitmq

  • mongodb

Places to check for errors:

  • /var/log/nginx/error.log

  • /webapps/dota2rails/log/production.log

  • ~/.forever/(4 random characters).log (matchurls/steam login issues)

Thanks

You can’t perform that action at this time.