Update Node.js + Express application in Namecheap Cpanel - node.js

I am working on a MERN stack project. I deployed the server using the Namecheap Cpanel. I cannot figure out how to update the app. I wanted to add a new API, so I tried to edit the index.js file, added the API, and restarted the app. But it is not working. Then I tried to rerun the scripts. That also not worked. Can anyone suggest to me how to update the app in Namecheap Cpanel?

Related

Node MVC model not working properly on cpanel shared hosting

The node app that I hosted on a shared hosting server is not routing as expected. It works perfectly fine on localhost. But when I tried removing the controller and routes folders, and then setting it up in app.js file, it will work fine on cpanel.
I don't know, maybe cpanel does not support node MVC model.
Please help me out.
Thanks.

Hosting Nodejs Mongodb website with frontend but not React

I'm very new in MERN stack development, I made a blog website with backend used HTML CSS JS NODEJS & MONGODB. and I want to host in netlify and heroku.
Tried So many times but got error.
My Github repo link :
here
Can any one completely explain how to host ?
If you're just getting started with hosting your apps, try a newer generation app hosting platform where you just connect your GitHub repo and it does everything else for you.
Node.js and Mongo is perfect for Adaptable.io. The free tier includes a Mongo database. Here's the guide to deploying a Node.js App with MongoDB. You could also try Render but they don't have MongoDB.

How to deploy Meteor Application on cPanel shared hosting

I am trying to deploy a meteor.js application on cPanel shared hosting. I don't have access to their cli.
I have followed this tutorial Host your Node.js app on Shared hosting. Go beyond localhost.
Now I am having hard time with a couple of things. I can't find any tutorial specific for meteor.js which is why I am facing some issues. Which are as follows
1. Without meteor Build
I uploaded the development version of my code. i.e the one with client,server,lib folders(without meteor build). The problem is that I am not sure about the "Application startup file".
I tried with "./client/main.js" and "./server/main.js" seperately but the site then returns 503.
2. With meteor Build
I then built my application and the build was generated with some errors. I then uploaded the tar.gz file and went with the main.js as Application Startup file. But now the cPanel is unable to detect package.json
Can someone please refer to a full guide of how to deploy a meteor app with cPanel.

How to deploy dist and server side on Heroku correctly?

I am creating a simple customer chat app for my school project using Pusher according to their tutorial.
I want to deploy the app on Heroku so anyone can use this app and connect to it. This app has a client-side (Vue.js app) and a server-side (express) folder.
How can I make it work together by deploying it on Heroku or what have I do?
I have deployed the client-side on Heroku and the front-end works fine.
I also tried to deploy server-side, but it seems it does not communicate with each other.
The server works fine on the localhost, however, I need to make it work globally.
The code can be found in this repository.
Server side settings are in server.js.
I have only changed some front-end stuff, but nothing important yet, so the code is pretty the same.
This is my first Vue.js & server deploying and I was trying several tips and tutorials, but none of them solved this issue.

Angular 7 on nodeJS server referencing github

I have an angular 7 app that runs on NodeJS server. When I build my app from local and deployed it, it works fine.
However, after I committed the project to github, another developer cloned it. He created the build for NodeJS server, and now all the paths are pointing to github.
Screenshot from console
Did anyone experience the same? Please advise how to fix it.

Resources