0👍
Looks to me to be a problem with your paths. In the error log I see that the chained command is:
cd backend && npm i && npm run dev & cd frontend && npm i && npm start
According to your tree structure there is no frontend
directory inside backend
directory, which makes cd frontend
fail. Try adding a ../
in there to go up one level before you go into frontend
:
cd backend && npm i && npm run dev & cd ../frontend && npm i && npm start
0👍
Ok so I just deployed the frontend and backend as separate apps on Heroku. I followed this tutorial for making a Vue.js + webpack deploy on Heroku: https://codeburst.io/quick-n-clean-way-to-deploy-vue-webpack-apps-on-heroku-b522d3904bc8
Instead of pushing the frontend folder though, I push only the dist/ folder located in the frontend folder. I followed the steps from the article except the git init part. I cd’ed into the dist folder and did my git init there instead.