+ Start a Discussion
Roald TerpienRoald Terpien 

heroku on windows

I can't complete the Salesforce connect trailhead, the command to run heroku locally, DATABASE_URL=`heroku config:get DATABASE_URL` PGSSLMODE=require npm start, throws a syntax error:"The term 'DATABASE_URL' is not recognized as the name of a cmdlet,function, script file, or operable program. 
King KooKing Koo
Same - I got "'DATABASE_URL' is not recognized as an internal or external command,
operable program or batch file." error.
 
gautam_singhgautam_singh
If you are using WINDOWS then Run the following steps on Command Line: 

1. set DATABASE_URL='heroku config:get DATABASE_url
RUN 
2. set PGSSLMODE=require
RUN
3. npm start
RUN 

You will get a message Express Server Listening on PORT 5000
then TEST Your Application.


Important :

If you have received the answer which you are looking for, Please mark it as a Solution, this will help others to find the resolution of problem with ease. More, you can make the Developers of the Community smile by appreciating the answer with the "Like" Button. We would love to help you again. 

Thank You
Gautam Singh 
Blog - http://singhgautam02.blogspot.in/
Me   - about.me/singhgautam