From the course: Node.js: Deploying Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Heroku application interaction

Heroku application interaction - Node.js Tutorial

From the course: Node.js: Deploying Applications

Start my 1-month free trial

Heroku application interaction

- [Instructor] Now, we can create a second application for our staging environment, so heroku create --remote staging. Note that I'm in the Exercise Files directory here, and it'll create a second app, so now we have two applications coming from this same directory, and infinite-everglades is what my staging environment is. So let's go ahead and deploy the application to staging and see what happens, so git push staging master. Okay, looks like that built correctly, so let's copy and paste to open the application. Well, that's weird. It's got the build environment of staging. That's good. It means it built the files correctly, but there's no app data here. There must be something wrong. So we could check the logs in the dashboard, but there's also a command line version, so let's take a look at that. So back to the terminal window, heroku logs --remote staging. All right, let's scroll up and take a look at what we've got here. Well, it's a Mongo error, so clearly the problem is that…

Contents