You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

s3deploy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3deploy

0.1.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

S3deploy

S3deploy is a tool for deploying static websites to Amazon S3.

Installation

Add this line to your application's Gemfile:

gem 's3deploy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install s3deploy

Usage

Get an Amazon AWS account and create the bucket you want to use. Set up the bucket to be used as a website.

Create configuration files

Create a folder configuration file like this:

$ s3deploy init

Then update the newly created .s3deploy.yml with your settings (comments in the generated file explains how to set it). You might want to create a default configuration file where you can store information shared between sites, like Amazon access key, secret and region. You do that with this command:

$ s3deploy init --default

This configuration file will be created in your home directory in the .s3deploy folder. Update this file with your info, remember that the settings in the .s3deploy.yml in the project folder takes precedance over settings in this file.

Deployment

Deploying is easy now, just type:

$ s3deploy

If you want to test-drive your configuration you can simulate a deploy

$ s3deploy simulate

Other

If you want to empty a bucket, you can do it with this command:

$ s3deploy empty

But beware that all files will be removed, you can simulate emptying the bucket with:

$ s3deploy simulate empty

Whats next?

  • Create method for creating a bucket from the settings in the configuration and settings it up as a website.

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 01 Sep 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts