Set up your directory with EB CLI.
eb init -p node.js --profile rafeta
Create the environment dev-env and deploy the sample application.
eb create dev-env
View the sample application.
eb open
To deploy a new application version
eb deploy
Shut down your environment by typing the following:
eb terminate
Remove your application and the local project directory by typing the following:
eb terminate --all
git init eb init
To use different Git branches
git checkout master eb use prod git checkout develop eb use dev
To assign Git tags to your application version
git tag -a v1.0 -m "My version 1.0"
EB CLI uses your commit ID and message as the application version label and description, respectively.
git commit
Deploy your updated code.
Now, when you run eb deploy
, EB CLI will deploy only the code that was under source control.
Si cuando lanzas eb open
la aplicación devuelve un 502, tienes que hacer esto porque el servidor no ha arrancado la aplicación:
From the EB App Dashboard, go to Eb Configuration -> Software Configuration.
Under Container Options -> Node Command add npm start
, or node <yourmainfile>
.