I'm using Elastic Beanstalk to deploy my web application. I have successfully deployed my PHP/MYsql application by using git and the eb commmand line.
Every time I close and reopen the terminal to update my application the eb command is not recognised and I have to add it back it with the export command;
export PATH=$PATH:/eb/linux/python2.7/
I then have to go and add in all the Elastic Beanstalk configuration for my instance back in again.
Also I found that if I deploy another application and use the same path to the above eb folder, it overwrites the settings of the first application.
My question is firstly, how do I prevent having to add in eb and reconfigure my instance every time I reopen the terminal. And secondly, will each application have to point to a separate eb directory in order to separate the AWS configurations. i.e.
<path to unzipped EB CLI package>/app1/eb/linux/python2.7/
<path to unzipped EB CLI package>/app2/eb/linux/python2.7/
<path to unzipped EB CLI package>/app3/eb/linux/python2.7/
I'm not sure what OS you're developing on, so here are several common options:
export PATH=$PATH:/eb/linux/python2.7/
to the bottom of this fileexport PATH=$PATH:/eb/linux/python2.7/
to the bottom of this fileHere's a youtube video walkthrough to set environment variables in Windows.