Skip to content

Latest commit

 

History

History
executable file
·
44 lines (29 loc) · 1.02 KB

README.textile

File metadata and controls

executable file
·
44 lines (29 loc) · 1.02 KB

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 [email protected]:${new_project_name}.git
git remote add baseline [email protected]: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}