Code Monkey home page Code Monkey logo

locomotive-heroku's Introduction

Heroku extension for LocomotiveCMS

This extension allows LocomotiveCMS to run on heroku

Requirements

  • Heroku gem
  • Heroku app
  • Heroku API key
  • LocomotiveCMS engine

Installation

Inside your LocomotiveCMS application, open your Gemfile file and insert the following line after the one referencing LocomotiveCMS

gem 'locomotive_heroku', :require => 'locomotive/heroku'

Configuration

Then, you have to let Heroku know about your API key and your application name
Modify your Locomotive config file (config/locomotive.rb)

config.hosting = { :target => :heroku, :api_key => '<YOUR HEROKU API KEY>', :app_name => '<MY HEROKU APP NAME>' }

Storage: Amazon S3

Because Heroku disables writing on their disk, we have to use Amazon S3 or any storage providers as long as they are supported by Carrierwave. In the following example, we will use Amazon S3 which is by far the most known/used.

Open your terminal and at the root of your application on your machine,

heroku config:add S3_KEY_ID=<your s3 key id>
heroku config:add S3_SECRET_KEY=<your s3 secret key>
heroku config:add S3_BUCKET=<your s3 bucket name>

Note: If you plan to use another storage provider, do not forget to modify the config/carrierwave.rb file accordingly.

Contact

Feel free to contact me at didier at nocoffee dot fr.

Copyright © 2012 NoCoffee, released under the MIT license

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.