Fixing deploy
This commit is contained in:
parent
7133069efd
commit
5ff75c665c
|
@ -2,5 +2,5 @@
|
|||
app_user: amiibofindr
|
||||
|
||||
# Git repository
|
||||
git_repository: git@github.org:fmartingr/amiibofindr.git
|
||||
git_repository: git@github.com:fmartingr/amiibofindr.git
|
||||
git_branch: master
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
site_hostname: amiibofindr.com
|
||||
|
||||
site_media_hostname: media.amiibofindr.com
|
||||
site_static_hostname: static.amiibofindr.com
|
||||
|
||||
enable_ssl: false
|
|
@ -1,8 +1,13 @@
|
|||
default ansible_ssh_host=127.0.0.1 ansible_ssh_user=vagrant ansible_ssh_port=2222
|
||||
web-1 ansible_ssh_host=46.101.172.158 ansible_ssh_user=root ansible_ssh_port=22
|
||||
|
||||
[localdev]
|
||||
default
|
||||
|
||||
[development]
|
||||
|
||||
[production]
|
||||
web-1
|
||||
|
||||
[deploy]
|
||||
web-1
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
- name: Create build git directory
|
||||
file: path={{ deploy_path.stdout }}/git state=directory
|
||||
sudo: true
|
||||
sudo_user: "{{ app_user }}"
|
||||
|
||||
- name: Copy repository to build folder
|
||||
command: cp -r {{ app_git_folder }} {{ deploy_path.stdout }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Ensure virtualenv requirements installed
|
||||
pip: requirements={{ deploy_path.stdout }}/git/src/backend/requirements-prod.txt
|
||||
pip: requirements={{ deploy_path.stdout }}/git/requirements/production.txt
|
||||
virtualenv={{ deploy_path.stdout }}/.virtualenv
|
||||
|
||||
- name: Symlink virtualenv to git src folder
|
||||
|
|
Loading…
Reference in New Issue