Skip to content

thomasyip/sinatra-with-devise

Repository files navigation

Using Sinatra with Devise

We need authentication in pretty much every project. If Sinatra Devise (with Rails), Heroku are your weapons of choice, then this project might save you some time.

The commit histories were carefully crafted such that it is easy for people to follow the steps and regenerate this project with new versions of gems.

Usage

1) First, create a new directory

mkdir MyApp
cd MyApp

2a) Pick a new unique heroku name for your project:

export new_project_name=---a-new-name---
heroku create ${new_project_name}

2b) Or, let heroku pick one for you and export the name:

heroku create
export new_project_name=---a-new-name---

3) Run these commands:

git init
git remote add origin git@heroku.com:${new_project_name}.git
git remote add baseline git@github.com:beedesk/sinatra-with-devise.git
git pull baseline master
git push -u origin master
heroku addons:add sendgrid:starter --app ${new_project_name}
heroku rake db:migrate --app ${new_project_name}

About

Example for getting Sinatra and Devise working together on Heorku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published