A template for building out a Ghost.js website for running under AWS ECS (Amazon's Elastic Container Service).
- Setup your AWS Cluster, Task Definition, and Service for the Container to receive the project. (Note: AWS terminology capitalized.)
- Setup scripts submodule as referenced here.
- Edit the
config.jschanging theapp_dnsvariable at the top. - (optional) Edit
env.shfrom step 1, and add the variables from theconfig.jsas needed for configuring your development database instance (if you choose to create a development instance. - Execute the following:
source env.sh ./scripts/docker_build.sh ./scripts/docker_deploy.sh
If you wish to test the application before deploying it, execute ./scripts/docker_run.sh.
You may experience an error the first time deploying as the script attempts to restart the container after deployment. Not to worry, but make sure that you have your service in AWS set to 1 or more instances.
Feel free to submit an issue on GitHub or create a pull request.
Bobby Larson of The Larson Agency
Please see accompanying file.