Oh I see. I am using express.js for my backend / server side. If you know of any solution to do it using express and let me know, that’d be great. If not, then thanks for your insights!
Posts made by quangtn1893
RE: Deploy on Heroku with express server
Thanks, I think it is a good idea to separate my code and creating a client folder.
I’m still confused as to how this will help me. Is the public folder created when i run “npm build” in my server dir ? Thanks for you reply btw!
Deploy on Heroku with express server
Hey guys, this is my first time posting on here.
So basically, I’ve created an app using Quasar with Express.js for the server side ( i have a folder within the quasar app called “server” that has its own package.json and dependencies). I am trying to host my app on Heroku. In order to do that, I’ve ran “quasar build” and it created a “dist” folder in order for me to push on to Heroku. I’ve also followed this guide in order to help me host my app on Heroku. I think my problem is that, inside the “dist” folder, it doesn’t know that I have all the server side code in my “server” folder so when I actually try to run “npm start” in my “dist” folder and load the app, it cannot make any of the api calls that I’ve created on my server side. Any ideas as to how I can include my server side code? Thanks