diff --git a/bin/deploy:push b/bin/deploy:push index 81384d5e..bc0655e4 100755 --- a/bin/deploy:push +++ b/bin/deploy:push @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Deploy a new version to production, using the Ansible playbook in `deploy/deploy.yml`. # This skips the build step that normally runs when you just call `bin/deploy`. -ansible-playbook -i deploy/inventory.cfg deploy/deploy.yml +cd $(dirname $0)/../deploy && ansible-playbook deploy.yml diff --git a/bin/deploy:setup b/bin/deploy:setup index 70177f69..303de75a 100755 --- a/bin/deploy:setup +++ b/bin/deploy:setup @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Set up the deployment environment, using the Ansible playbook in `deploy/setup.yml`. echo $'Setup requires you to become the root user. You\'ll need to enter the password for your account on the remote web server below, and you must be part of the `sudo` user group.' -ansible-playbook -K -i deploy/inventory.cfg deploy/setup.yml +cd $(dirname $0)/../deploy && ansible-playbook -K setup.yml diff --git a/deploy/ansible.cfg b/deploy/ansible.cfg new file mode 100644 index 00000000..e9fa9c2c --- /dev/null +++ b/deploy/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +inventory = inventory.cfg