Udagram: Your Own Instagram on AWS FAQ — Udacity
Cloud developer
How to install the EB CLI
For mac https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-osx.html
For linux https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-linux.html
For Windows https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-windows.html
How to validate the URL
This is a good example https://stackoverflow.com/questions/30970068/js-regex-url-validation/30970319
How to debug?
- To the elastic beanstalk page and go to logs
2. Download the logs and try to look at the error messages:
How to deploy the app?
- Configure your project directory and the EB CLI by running eb init.
- Add a start script in the package.json
3. Run npm run build
to transpile and package our code into a zip, we need to configure Elastic Beanstalk to use this build archive. This is accomplished with the following addition to the .easticbeanstalk/config.yml configuration file:
deploy:
artifact: ./www/Archive.zip
Add the enviroment name
4. Run eb create
eb create
How to test the app without EB CLI?
- Open the terminal and change directory to the root folder of the project
- Build:
npm run build
3. Open the elastic beanstalk page and create the application:
4. Select the Archive.zip: