so Ive finished my first app and I want to deploy it to Heroku, but I keep getting error No default language could be detected for this app. Ive read that you need to have package.json in your root directory. My directory looks like this
AppFolder
- client -> package.json + /public + /build folder + /src -> all react components
- server -> package.json + app.js(main file) + .env + db.js (database pool) + /routes folder
- Is there a way how to keep this file structure and still deploy it succesfully?
- Should I commit /build folder to github as well? (Its in .gitignore originally) and its created in /client folder, however in some guide I was trying to follow they moved it to /server folder. Id like to use continious deployment as I still need to test responsivnes + finish some details.
- Also Im using MySQL, will I be able to host my database on Heroku as well?