I recently converted the datafruits front end app to ember.js. Before I was using yeoman and gulp. I’m really liking ember-cli, I like how it feels like rails. Also ember-cli-deploy has popped up as a deployment solution.
Configure your ember app for deployment
First you will need to install the appropriate addons.
Open up your config/deploy.js and add this, after the declaration of the ENV
variable:
Obviously replace the bucket and region with your own. The s3 credentials should not be kept in the source code, so store them in environment variables.
Prepare the S3 Bucket
You are going to have to create the bucket before you can deploy.
Go to the S3 console and create a bucket like normal.
Enable static website hosting for the bucket. Set the index document to index.html.
Set permissions with this policy. This will make all the items in the bucket
public. Replace zomgif
with the name of your bucket.
Enable Static Website Hosting on the bucket. Set the Index Document to index.html. Set the Error Document to index.html as well.