Skip to content

BElluu/Ansible-Heroku-Deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How does this role works? Role prepare machine to pull project from GitLab and deploy on Heroku

How?

  1. Complete the variables in defaults/main.yml

app_dir: Name directory for app
repo_name: Link to repo e.g git@gitlab.com:BElluu1/BestAppEver.git
app_name: Name app on Heroku
commit_message: commited new things
ssh_key_user: SSH user which will pull project from repo
ssh_key: dest to SHH key e.g /home/belluu/.ssh/id_rsa

  1. Add your credentials to Heroku in login.exp file
    You need to replace HEROKU_EMAIL and HEROKU_PASSWORD

  2. Add your machine SSH key to GitLab

  3. Run your playbook like that:

ansible-playbook heroku_deploy_playbook.yml

About

Deploy app on Heroku using Ansible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published