Skip to content
 
 

Latest commit

 

History

58 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HCRailsDemo

Just a rails CRUD app to demo heroku connect.

Setup

You must have access to Heroku Connect to deploy this app. If you do not have access, contact Heroku Sales. Scroll to the bottom and fill out the Contact Us form.

Get a SE Demo Force app.

Click on this button:

Deploy

Or, deploy the app by hand:

git clone https://github.com/tsykoduk/HCRailsDemo
cd HCRailsDemo
heroku create 
heroku addons:add papertrail
heroku addons:add newrelic-stark
git push heroku master

You'll need to add the Heroku Connect addon by hand:

heroku addons:add herokuconnect:test

Now Launch https://dashboard.heroku.com/ and locate your newly created app.

Click on Heroku Connect under Add-Ons

Once you launch Heroku connect, you will be asked to create a new schema and connection to your salesforce org.

Map the following fields over in Heroku Connect:

  • billingstate
  • billingpostalcode
  • billingcountry
  • billinglatitude
  • billingcity
  • billingstreet
  • accountsource
  • accountnumber
  • fax
  • name
  • description
  • phone
  • website
  • tickersymbol
  • recordtypeid

After your first sync, your Postgres table should look like this (use \d salesforce.account in heroku pg:psql to view it)

                                            Table "salesforce.account"
      Column       |            Type             |                            Modifiers                            
-------------------+-----------------------------+-----------------------------------------------------------------
 billingstate      | character varying(80)       | 
 fax               | character varying(40)       | 
 billinglatitude   | double precision            | 
 accountsource     | character varying(40)       | 
 billingcity       | character varying(40)       | 
 id                | integer                     | not null default nextval('salesforce.account_id_seq'::regclass)
 billingcountry    | character varying(80)       | 
 _c5_source        | character varying(18)       | 
 name              | character varying(255)      | 
 accountnumber     | character varying(40)       | 
 billingpostalcode | character varying(20)       | 
 description       | text                        | 
 sfid              | character varying(18)       | 
 billingstreet     | character varying(255)      | 
 isdeleted         | boolean                     | 
 billinglongitude  | double precision            | 
 lastmodifieddate  | timestamp without time zone | 
 phone             | character varying(40)       | 
 website           | character varying(255)      | 
 tickersymbol      | character varying(20)       | 
 recordtypeid      | character varying(18)       | 

Launch the app

heroku open

Profit

About

Just a rails CRUD app to demo heroku connect

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages