ChickenKyiv / loopback-tutor-intern-8

https://loopback-react-account.herokuapp.com/
https://groceristar.netlify.com/
GNU General Public License v3.0
0 stars 1 forks source link

setup a heroku server for both of us, with separated mongo source #16

Closed atherdon closed 6 years ago

atherdon commented 6 years ago

and then combine with netlify sutff

chauhannishith commented 6 years ago

You will have to create an app in Heroku and invite me as a team member to it as I don't have access to this repository

atherdon commented 6 years ago

https://dashboard.heroku.com/apps/loopback-react-account mongodb://heroku_0cnjshvh:il0ct1e0tu8kudu9gjg87gbaju@ds159489.mlab.com:59489/heroku_0cnjshvh let's do this way - we deploy on heroku only server side first - and trying to connect things between netlify and heroku. sounds like an interesting experiment

chauhannishith commented 6 years ago

You haven't attached this repository in heroku. I don't have access to this

chauhannishith commented 6 years ago

feels like dumb that i had typed that yesterday and had not pressed send

atherdon commented 6 years ago

i connect git. btw, i assume this will be easier - i'll share my heroku cred with you at slack

chauhannishith commented 6 years ago

I have encountered one error related to heroku How do I set a host? If I set it as 0.0.0.0 then it runs on heroku but for the verification email it fetches the host from config file and the link in email has 0.0.0.0 which won't reach anywhere

atherdon commented 6 years ago

hmm, strange thing...

On 01-May-2018 at 01:48 PM, chauhannishith wrote:

I have encountered one error related to heroku How do I set a host? If I set it as 0.0.0.0 then it runs on heroku but for the verification email it fetches the host from config file and the link in email has 0.0.0.0 which won't reach anywhere

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ChickenKyiv/loopback-tutor-intern-8/issues/16#issuecomment-385674614, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZrDo2eUsYzNSdlgeRbwv5WyDVURi2dks5tuGefgaJpZM4TN4E0 .

atherdon commented 6 years ago

maybe it's not the way to get a link for emails? i mean we can store url at other place - maybe it's a better way?

On 01-May-2018 at 01:48 PM, chauhannishith wrote:

I have encountered one error related to heroku How do I set a host? If I set it as 0.0.0.0 then it runs on heroku but for the verification email it fetches the host from config file and the link in email has 0.0.0.0 which won't reach anywhere

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ChickenKyiv/loopback-tutor-intern-8/issues/16#issuecomment-385674614, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZrDo2eUsYzNSdlgeRbwv5WyDVURi2dks5tuGefgaJpZM4TN4E0 .

chauhannishith commented 6 years ago

I dont know if there is a way to set up custom links or not but it fetches the host and port. I had setup a config file so that the host and port are set through process.env (which it is setting in case of port) . Also it is running on a localhost instance on heroku so that might be the problem. I copied the link and checked by replacing the host and port with site url and found that the rest of the link is correct

atherdon commented 6 years ago

Hmm, i should touch it myself. push the latest things to repo and i'll take a look. i just have break from groceristar homepage - so maybe can help