I want to setup Elastic Beanstalk for my existing rails application.
I was successful in doing the sample foo app.
These are the questions I have
I need the deployment to happen from my git repository and not from my local path where I am deploying. How do I do that for the sample foo app.
The git aws.push command seems to deploy on the new ec2 instance. However, it did not push the changes to my git repository. Should I do a git push separately before doing a git aws.push ? Notice that my branch is ahead by 1 commit when I do a git status. Does aws maintain a separate git repository ? How can I get it to use my git repository instead ?
[mymac:~/Projects/new/foo(master)]$ git aws.push Counting objects: 4949, done. Delta compression using up to 4 threads. Compressing objects: 100% (1115/1115), done. Writing objects: 100% (4949/4949), 14.11 MiB | 1.90 MiB/s, done. Total 4949 (delta 3800), reused 4944 (delta 3798) remote: To https://AKIAJZT3WFY2WLO6CHQQ:20121127T030627Zf56675b2f4c9c731ca6f51b11d36a438e8bcee25c5171061ce5ac681495318c9@git.elasticbeanstalk.ap-southeast-1.amazonaws.com/v1/repos/617069/commitid/39396162666436346439656465313537613561343561626465643931393366623762386265303138/environment/6170692d656e76 * [new branch] HEAD -> master [mymac:~/Projects/new/foo(master)]$ git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean)
Below is the result of just a git push.
[mymac:~/Projects/new/foo(master)]$ git push Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 340 bytes, done. Total 3 (delta 2), reused 0 (delta 0) To email@example.com:xxxx/foo.git 885cc33..99abfd6 master -> master
Separately, I need to have a before_symlink deploy hook. How can I do this ?