1.- Create an Amazon AWS account
2.- Create an S3 bucket
3.- Get security creds
4.- Create a CloudFront instance and get the domain name (xxx.cloudfront.net)
5.- Copy CORS configuration XML file with the proper Heroku project URL
6.- Create a Heroku account
7.- Visit the Heroku documentation website (https://locomotive-v3.readme.io/docs/heroku) and click button deploy to heroku
8.- Fill the fields with the proper AWS keys. Add S3_ASSET_HOST_URL
with the CloudFront domain name value
9.- Click on the button deploy
10.- From Heroku go to site and create a new site on the CMS screen after registering
11.- Copy the production configuration into deploy.yml
12.- deploy now from the CL
Created
July 19, 2017 10:11
-
-
Save 7vs/c3f414cd78410a3d3772c00a4de76054 to your computer and use it in GitHub Desktop.
Deploy Locomotive CMS instance to heroku guide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>https://yourdomainname.herokuapp.com</AllowedOrigin> | |
<AllowedOrigin>http://yourdomainname.herokuapp.com</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>HEAD</AllowedMethod> | |
<AllowedMethod>DELETE</AllowedMethod> | |
<AllowedMethod>PUT</AllowedMethod> | |
<AllowedMethod>POST</AllowedMethod> | |
</CORSRule> | |
</CORSConfiguration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment