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:
Related
Im having an issue with my app. It doesnt load images from my database, sometimes it loads for a couple of hours then they disappear from the app. Has anyone solved this error?enter image description here
#Konrad Linkowski is correct, Storing images in a database isn't a good idea,
so you can store the image by using that image id , like that you no need to store image in db ,
I have deployed a Nodejs application to Heroku, the cloud I use cloud mongoDB. The problem is that every time I upload a photo to post a post, the app only shows up for about 1 hour, then I re-download it, and the website fails to display the image again? Is it because I use the free Heroku package, everyone? Everyone help me please. This is my website https://myblog-nodejs-mongoose.herokuapp.com/
I'm trying to deploy my application to Heroku (as usual) and I keep getting 503 Service Unavailable when trying to upload anything through my router handler (Multer)!
it's not related to any packages since I tried different projects with and without multer and the same return
Hi #Mahmoud Nasr,
Kindly run the nodejs code locally in system and check for any issues.
If it works then the issue is with Heroku server configurations or the
server is not available.
If it not working in local in the first place kindly update the snippet,
let's figure it out.
Regards,
Muhamed
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
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!