{"id":19367670,"url":"https://github.com/channingdefoe/directus-cms-beanstalk-deploy-example","last_synced_at":"2025-02-24T13:41:54.812Z","repository":{"id":143995418,"uuid":"574856625","full_name":"ChanningDefoe/directus-cms-beanstalk-deploy-example","owner":"ChanningDefoe","description":"Directus CMS api deploy example - https://directus.io/","archived":false,"fork":false,"pushed_at":"2022-12-06T08:37:00.000Z","size":215,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-06T22:20:47.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChanningDefoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-06T08:17:41.000Z","updated_at":"2022-12-06T08:37:03.000Z","dependencies_parsed_at":"2023-07-12T17:00:12.465Z","dependency_job_id":null,"html_url":"https://github.com/ChanningDefoe/directus-cms-beanstalk-deploy-example","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"3edc20f07416241b69d65dcb083ab8b15f23ca93"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanningDefoe%2Fdirectus-cms-beanstalk-deploy-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanningDefoe%2Fdirectus-cms-beanstalk-deploy-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanningDefoe%2Fdirectus-cms-beanstalk-deploy-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanningDefoe%2Fdirectus-cms-beanstalk-deploy-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChanningDefoe","download_url":"https://codeload.github.com/ChanningDefoe/directus-cms-beanstalk-deploy-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240491808,"owners_count":19809977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T08:04:15.467Z","updated_at":"2025-02-24T13:41:54.805Z","avatar_url":"https://github.com/ChanningDefoe.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy Directus CMS on AWS Beanstalk\n\nThis is for deploying [Directus CMS](https://directus.io/) to AWS elastic beanstalk.\n\nCreate this repo because I saw a few people asking on the [Directus Discord](https://discord.gg/directus). This is an example repo for a beanstalk deployment. I would reccomend installing from the cli and not forking or cloning this repository.\n\n## Directus Beanstalk Deploy:\n\n1. In the package.json define the node engine and add the start command:\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"directus start\"\n    // ....more stuff here\n  },\n  \"engines\": {\n    \"node\": \"\u003e=16.0.0\"\n  }\n}\n```\n\n2. Update your .env to run on port localhost port 8080. (This is the default for Amazon Linux 2 nodejs)\n\n```env\nHOST=localhost\nPORT=8080\n```\n\n3. Copy the files from the `.platform` directory in this folder into the root of your directus project. Then run the following commands:\n\n```\nchmod +x .platform/hooks/prebuild/00_npm_install.sh\nchmod +x .platform/confighooks/prebuild/00_npm_install.sh\n```\n\n4. Thats it, you can now deploy on elastic beanstalk! 🚀\n\n5. (Extra) Deploy on elastic beanstalk. Here's a few quick commands you can copy and paste to get it started from the cli:\n\n```bash\neb create $(NAME_OF_ENVIROMENT) -i $(INSTANCE_TYPE)\n```\n\n***Note: I would reccomend using a bigger instance size because of the npm install command. If you try to use a micro instance, it may not install and error out. If you are using t3 size instance, t3.medium would be the minimum size I'd reccomend***\n\n```\neb deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanningdefoe%2Fdirectus-cms-beanstalk-deploy-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanningdefoe%2Fdirectus-cms-beanstalk-deploy-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanningdefoe%2Fdirectus-cms-beanstalk-deploy-example/lists"}