Skip to content

eladmeidar/sinatra-mongoid-heroku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sinatra-mongoid-heroku

This is just a simple boilerplate for me to use when starting a new project. It’s got sinatra, mongoid, thin, and foreman in it. Mind that you must gitignore the Procfile before pushing to Heroku if you’re using Bamboo, otherwise it’ll break.

ENV variables

For those who don’t know how to deal with this, the config/mongoid.yml uses ENV that should be in your ~/.bash_profile like this in your dev computer:

export MONGOID_HOST=“dbhost” export MONGOID_PORT=“27017” export MONGOID_USER=“user” export MONGOID_PASS=“pass” export MONGOID_DATABASE=“db” export RACK_ENV=“development” And you should add them to your Heroku account like this:

$ heroku config:add ENV_VARIABLE=value

About

Small boilerplate project with my heroku basics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.8%
  • Ruby 7.2%