From my site/application directory:
$ git aws.push
git: 'aws.push' is not a git command. See 'git --help'.
git --help
doesn't help.
All the posts I have read were written before EB Command Line Interface (CLI) 3.x was a thing.
I followed the official instructions here: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-getting-set-up.html
And here: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_PHP_eb.sdlc.html
Unfortunately, the latter still says to:
$ export PATH=$PATH:<path to unzipped eb CLI package>/eb/linux/python2.7/
But I don't know that path because I didn't download and unzip a package. I installed awsebcli using pip, as per the instructions on the first link above.
Everything else seems to be in place. I have WordPress configured and running locally (OS X/Apache) with the remote RDS MySQL database. Not that the contents of the application matter. My AWS IAM credentials are entered (via the prompt).
eb create
commands works! And it uploads my local application (files) perfectly. But I don't want to create a new application/environment. I already have one and I just want to git push
my files to it.
1. How can I find /eb/linux/python2.7/
so I can set that PATH?
2. Is there some other reason/solution?
Solution:
eb deploy
Turns out eb --help
WAS a big help.
But stupidly enough, it was as I sat there staring blankly at the screen that a memory jogged and I recalled seeing the command eb deploy
somewhere else (on a website).
I tried it. It worked.
If you are using AWS Elastic Beanstalk CLI 3.x…
Do not use git aws.push
!
Instead, use eb deploy
to update your application version.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With