---
- name: Clone rails project repo from GitHub
  git: repo=https://github.com/Bariter/video-freaks.git dest={{ app_repo_dir }}

- name: Bundle install
  shell: /bin/bash -lc "cd {{ app_repo_dir }} && bundle install --path vendor/bundle"

- name: Set secret key for production.
  shell: /bin/bash -lc "echo \"export SECRET_KEY_BASE=`bundle exec rake secret`\""

- name: Start application
  shell: /bin/bash -lc "cd {{ app_repo_dir }} && bundle exec unicorn_rails -c config/unicorn.rb -D"

---
- name: Clone rails project repo from GitHub
  git: repo=https://github.com/Bariter/video-freaks.git dest={{ app_repo_dir }}

- name: Bundle install
  shell: /bin/bash -lc "cd {{ app_repo_dir }} && bundle install --path vendor/bundle"

- name: Set secret key for production.
  shell: /bin/bash -lc "echo \"export SECRET_KEY_BASE=`bundle exec rake secret`\""

- name: Start application
  shell: /bin/bash -lc "cd {{ app_repo_dir }} && bundle exec unicorn -c config/unicorn.rb -D"

Fix command for starting unicorn
Fix command for starting unicorn
