heroku unable to host nodejs error shows unable to recognise parcel - node.js

Error log of Heroku platform
enter image description here
I tried to deploy app on Heroku sever but was unable to do due to some error
I tried to make Proc file and also edit the start point still it is unable to recognize parcel and also showing it has extra logging output

Try the steps that are mentioned below:
make .env file
and make PARCEL_WORKER=value(1,2,etc... depending on your parcel used)
the second step is splitting frontend and backend of the parcel as backend is generating some output and also frontend therefore 2 output are there which heroku is not able to show so split them and make one sever and it will show only one output on both the server

Related

Deploying Node.js on Evennode

I deployed my node.js app on Evennode using the git command line. On the logs i saw that app was deployed successfully because "db connection successful" is showing on the logs and there are no errors. However, when i try to visit the url it doesn't show any page. I copied the build folder from react to the backend directory so that the node app can read the react build folder from there and render client side. But it seems the app is not able to read the build folder which works fine on heroku but on even node, its not displaying my client side.
I have no idea why it couldn't read my client side build folder so i came to ask to find solutions

Nodemon refreshing app page when adding picture in public folder

I'm currently using the client/public/storage as a location to store downloaded pictures for my website for user related content. Of course this is only temporary to help me build my concept before booting things on the cloud.
My issue is when using Axios multipart/form-data to upload user submitted pictures to the location stated above, though Nodemon is supposed to be filtering out files that are not ".js", it's still somehow triggering a page refresh on my React app. I don't even need to run Axios for this, I can reproduce the issue just by manually putting a picture in the client/public/storage location.
I couldn't understand why, and I'm sure it's Nodemon doing it because when I run the app without it (command: replaced script node server instead of nodemon server) and I just manually put a picture in that server, the app doesn't refresh.
Can anyone help me figure out what's going on ? Thanks!
I've attached pictures showing output from Nodemon in verbose whenever I add a new file to the public/storage folder and showing how I run my app "npm run dev"

Heroku deploy Cannot / Get

I am trying to deploy my MEAN application to Heroku. The deploy is successful but when i am opening my applicaton i get an error CANNOT / GET. When i check the console the followings i get
Error.
I have tried to configure the package.json several times but it didnot help. You can check it from my commits.
Here is my github repo.: https://github.com/urgyanmiki/AngularApp
Thank you very much!
Your package.json is starting the server.js of your backend. But you don't have a server.js for your frontend to receive requests.
I would suggest that you split your apps and deploy two apps to Heroku to see if everything is working. Afterwards you can still combine them into one app if you like.
You can follow this example to see what Heroku expects for the server.js of your frontend: Medium article

Having issues with Heroku deployment

I am trying to upload a MEAN stack app for the first time, so I am not sure I am doing it the best way but here it is.
I have deployed my nodeJS server to one domain and it seems to be working fine - response message
but I am having problems with the client part.
I deployed the angular code to a different domain (not sure if that's how you do it) and I am getting this error:
error link
Here is a link to my github project repository if it could provide some more information - https://github.com/igalM/igal-school
I used the Heroku CLI and Container Registry to upload the code with Dockerfile.
Thank you in advance!
Looks like I just had to add a server.js to my client folder. SOLVED!

Heroku Nodejs get image 404

I'm using MEAN Stack(express and nodejs) to deploy my project into heroku. I'm using a sandbox database provided by mongolab(mlab) addons. My question is why does the the image file cannot be displayed after a certain period of time(after 30-40 minutes)? The system has no problem when reloading. The image will still be there. But after the period mentioned, the server cannot Get the image and return 404 error. Here's an example:

Resources