Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

assets_deployer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets_deployer

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

AssetsDeployer

Asset files deployer for rails application.

Installation

Add this line to your application's Gemfile:

gem 'assets_deployer'

And then execute:

$ bundle

Or install it yourself as:

$ gem install assets_deployer

Usage

Rails

Add initializer at config/iniitializers/assets_deployer.rb

AssetsDeployer.configure do |config|
  config.assets.root_path   = Rails.root.join('public')
  config.assets.prefix_paths = ['assets', 'packs']
  config.assets.ignore_paths = ['packs/manifest.json']
  # your storage service configurations
  config.storage.name = 'S3'
  config.storage.options[:bucket]     = 'bucket_name'
  config.storage.options[:prefix_key] = 'project_name'
  # credentials
  # Also, you can use environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) or instance profile credentials
  config.storage.credentials[:access_key_id]     = 'aws_access_key_id'
  config.storage.credentials[:secret_access_key] = 'aws_secret_access_key'
end

then you can use this rails command

$ bundle exec rails assets:precompile assets:deploy

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 27 Jun 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc