Configure S3-based deployments via s3cmd#467
Configure S3-based deployments via s3cmd#467joefiorini wants to merge 1 commit intoemberjs:masterfrom
Conversation
|
On OSX it's |
|
I needed to setup an s3cmd config file with s3 creds before this would work. Is there something about passing them as ENV vals that I'm missing? |
|
@mharris717 You should be able to just pass them in as env vars. Make sure you're using AWS_ACCESS_KEY and AWS_SECRET_ACCESS_KEY as the variables. |
|
Ah, your original post had different ENV names. Thanks! |
|
Ooops, sorry about that! On Tue, May 7, 2013 at 9:09 PM, mharris717 notifications@github.com wrote:
|
|
FYI it's AWS_ACCESS_KEY_ID not AWS_ACCESS_KEY I still can't get it it work. It's nbd, right now using a hack where I write the creds to a temp .s3cfg file, then point s3cmd at it. Will just leave that in for now. Thanks again. |
|
This is inactive and it seems like it may not work. Closing for now. |
|
I think this was taken on in @mharris717's PR. If it's actually not On Wed, Aug 28, 2013 at 1:42 PM, Peter Wagenet notifications@github.comwrote:
|
This completes part of the infrastructure requirements for implementing automated website deployments via travis as discussed in #237.
This PR contains all commands necessary to create the bucket, setup the website configuration, set the bucket policy (ensuring that all files will be world-readable) and perform the first deploy. You can run this via:
rake s3:setup. Subsequent deploys can be run vairake s3:deploy. You will need 3 environment variables set:The
BUCKET_URLmust be in the form of s3://{BUCKET_NAME}.To run the initial setup commands you must have the latest alpha of s3cmd installed (on a Mac via Homebrew
brew install --dev s3cmd). For other platforms, make sure you install at least 1.5.0-alpha3.To run the deploys via Travis, we should be able to add:
to our .travis.yml and get access to s3cmd that way.
I tested all of this (minus travis integration) using my own S3 account, you can see the site running at http://emberjs.joefiorini.com/.