I have an app on cloud 9 IDE, it works perfectly on cloud 9 when I run nodemon server.js but when I deploy it to Heroku it gives an application error.
How I am deploying it to git:
Login into Heroku and create an app online
Then in cloud 9 terminal I type heroku login and then type in my details
Then I type git init
Then heroku git:remote -a agile-stream-37163
Then git add .
Then git commit -am "initial commit"
Then git push heroku master
It deploys successfully but when I actually go to the app url it comes up with application error. I think I am deploying it wrong, I don't have much experience with git.
Heres an image from my cloud 9 terminal:
Can anyone please tell me how I can fix this.
Related
the bodgeit store (https://bodgeit.herokuapp.com) was running on that same url. now its not working and I wanted to host it again but new for Heroku.
Here is the GitHub link for that application (https://github.com/psiinon/bodgeit). I tried deploying it on herokuapp but it failed with error "not able to identify Buildpack"
Can you please tell me that process to deploy it on Heroku app?
Thanks in advance!
I was trying to create an app with Heroku. Following the docs, I ran heroku login, and heroku returned the following error:
! Invalid credentials provided.
» Warning: login is not a heroku command.
Did you mean join? [y/n]:
» Error: Run heroku help for a list of available commands.
! Command failed: heroku login
My Heroku Version is heroku-cli/7.0.9 win32-x64 node-v14.11.0. Any idea why this is happening, and how I can fix it?
My solution was to instead install it from npm, and then run heroku login which works.
I have angular app that I need to deploy to Azure
I deploy it via VS Code Azure App Service extension
App Service is Node LTS 10 and here is config for it
Here is startup command
pm2 serve /home/site/wwwroot --no-daemon --spa
After deploy vscode output says this
11:02:21 AM meetmymonsterreserve: Deployment successful.
11:02:30 AM: Deployment to "meetmymonsterreserve" completed.
But when I go to https://meetmymonsterreserve.azurewebsites.net/
I got this in console
At local project works well
Where can be a problem?
I'm a student going into back-end development for the first time and are trying to learn Node.JS. I downloaded a pdf book about Node.JS from sitepoint called: "Jumpstart Node.JS". In following the instructions to set up the server on the command line, install the dependencies, and navigate to localhost:3000, i got nothing except the following message: "Connection refused: localhost:3000", Can somebody please tell me what might have went wrong and how to fix it?
Edit1:
The instructions i followed is about setting up a node.js server using the Node command line, thus no code, simply cmd commands, however, here is a quick summary of the process i followed:
Created an account on MongoLabs and then a database using the free pricing plan.
Installed express using the command: npm install -g express#.2.5.8.
Created an applications with default options using this command: express authentication.
modified the package.json file in system32
installed the dependencies by typing cd authentication, hitting enter, and then typing the command: npm install
Typed node app and hit enter.
According to the instructions i should have seen a message: "Welcome to express" but instead got the error message.
In following the instructions to set up the server on the command line, install the dependencies, and navigate to localhost:3000
It seems that you didn't start the server.
Somewhere between installing the dependencies and navigating to the URL you need to actually start the server if you want it to serve the request.
Check that there is no copy of the server running in the background, or that another app is using the port currently.
(Your firewall show allow you to see which app has been allocated to that port)
Because nodejs requires it to be the only app on that port running on your computer.
Also try a different port maybe?
When deploying a node.js app to heroku, the following error pops up:
GitHub rate limit reached. To increase the limit use GitHub
authentication. remote: Run jspm registry config github to set this up.
How can I login to github via heroku?
Create github access token
Go to Github.com, login, settings, personal access tokens
Create a personal access token and copy it (we will use it later)
$ heroku buildpacks:set https://github.com/ddollar/heroku-buildpack-multi.git
Create a .buildpacks file in project root -> where package.json is
Add the following buildpacks to it and save and commit
https://github.com/timshadel/heroku-buildpack-github-netrc.git
https://github.com/heroku/heroku-buildpack-nodejs.git
$ heroku config:set GITHUB_AUTH_TOKEN=<Personal Auth Token>
git push heorku deploy:master or git push heorku master