Skip to main content
Ramzi Melliti が「#Integration」で質問
Hello,

I'm a beginner with salesforce and Heroku and i have some difficuties to use the SF database.

For the moment, I followed some guides (Devcenter-Heroku, stackoverflow..) and now i have:

- DATABASE_URL & DATABASE_PASSWORD on my env.

- DATABASE_URL with the correct URL present when i type `Heroku config`

- I have the following code into database.yml in development and production

development:

<<: *default

adapter: postgresql

host: localhost

username: postgres

database: <%= ENV['DATABASE_URL'] %>

password: <%= ENV['DATABASE_PASSWORD'] %>

- If I use `heroku pg:psql DATABASE_URL --app wishlist-users` and type

select * from salesforce.account;

I have the good output so i can acces to my data from my term.

- I set "gem 'databasedotcom'" "gem 'databasedotcom-rails'" "gem 'restforce'" into my Gemfile

- I used the command `gem install force`

Now i don't know what to do. I tried to generate models with the same db name and some other manipulation. I just want to display Name from salesforce.contact for the moment. The goal is just to link my app to the database.

If you know the solution or have a link with a good guide.

Thanks a lot.
1 件の回答