Install Church.IO Profiles
This document assumes you'll be deploying to the free cloud-based service Heroku. If you want to install to another service or your own dedicated server, please hop onto the mailing list and get some help.
1. Create a Facebook "App"
For the sake of these instructions, let's pretend your church's name is "OneChurch of Grand Rapids."
- Go to developers.facebook.com (log into Facebook if you're not already).
- Click on "Apps" at the top.
- Click the "Create New App" button.
- Enter your church name, e.g. "OneChurch of Grand Rapids"
- For the namespace, enter a similar name, but only with lowercase characters and dashes, e.g. "onechurch-grandrapids".
- On the app settings page, click "Website" and enter URL where your app will be, "http://onechurch-grandrapids.herokuapp.com" (see note at right for more help).
- Now copy the App ID and App Secret from the top of the page (we'll need this in a bit).
- Save changes.
2. Install Ruby and Git
You'll need to install Ruby and Git on your system in order to download and deploy to Heroku.
-
Visit rubyinstaller.org and download the installer for Ruby 1.9.3.
-
During the Ruby install, you should choose to have the Ruby executables added to your path:
-
You should already have Ruby on your Mac system. You can verify by running
ruby -vand verifying it is version 1.8.7 or higher. -
Use your system package manager to install Ruby, e.g.
sudo apt-get install ruby rubygems(actual command will depend on your particular distribution). -
Once you have Ruby, open the command promptterminal
and install the "heroku" gem with the following command:
sudo gem install heroku
- Visit git-scm.com and click on Windows Mac on the right to install Git.
-
Choose "Run Git from the Windows Command Prompt" when asked:
- Use your system package manager to install Git. On some systems, the package is called "git-core".
3. Download Profiles
We'll use Git to download the source code for Profiles.
In the command promptterminal, change to the directory where you want to download the package, then type the following commands:
git clone git://github.com/churchio/profiles.git
cd profiles
4. Configure Profiles
There are a few settings we need to configure before installation can occur.
-
Create your new Heroku app with the following command, replacing NAME with the name you chose before, e.g.
onechurch-grandrapids.heroku create --stack cedar NAME -
On the Start menu, open "Git Bash" and type the following:
ssh-keygenYou can accept each default setting by just pressing enter. Once your key has been generated, close this window and return to the command prompt for the next step.
-
Add your ssh key to Heroku:
heroku keys:add
-
Copy
config/settings.yml.exampletoconfig/settings.ymland edit the file appropriately. Set thefacebook_app_idandfacebook_secretto what you copied down from step one above. -
Back in the command promptterminal, type:
rake -f lib/tasks/heroku.rake profiles:heroku:configThere are no line breaks in the above command.
- Then copy and paste the displayed commands into the command promptterminal.
-
To set up outgoing email (optional; see note to the side), type the following:
heroku addons:add sendgrid:starter
5. Deploy
git push heroku v0.2.3:master
heroku run rake db:migrate
Now, visit your new site!
Upgrade
To upgrade to a new release, run the following commands:
git push heroku v0.2.3:master
heroku run rake db:migrate
Getting Help
To get help, please send a message to the mailing list or jump into the IRC chat room #church.io on freenode.
