-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App blank when deploying to heroku #49
Comments
@vlance11 I haven't deployed this app to Heroku, I will try myself and get back to you soon. |
@tuandm Thank you, as a heads up the 2 mysql db options do not work on heroku, must use postgres. As ClearDB mysql is version 5.5 which has the 787 error and the JawsDB fails to connect for seed. Should the app be built as PHP or Nodejs? |
@vlance11 The app is actually a Laravel instance with VueJS as frontend. The app should work without NodeJS, just run I believe the problems you've got are related to Laravel. Have you tried to install fresh Laravel on your Hekuro instance? (with proper mysql connection) |
@tuandm -- I was able to solve by adding "heroku-postbuild": "npm run build" to the package.json file Now the page displays correctly, but when logging in we see We have added MIX_BASE_API and BASE_API to the hosted environment variables as well |
@vlance11 Thanks for updating. MIX_BASE_API/BASE_API are for frontend calling to /api/auth/login correctly, and they worked as https://site/api/auth/login is called. 404 means the route doesn't exist. And |
Already resolved thanks for the order Solution : Cheers |
someone, please help me. just finished uploading my application but it is showing a blank screen. my link to the codes is https://github.com/sirjp1/ecommerce. please i need help urgently |
The app is beautiful, and it runs flawlessly on local. When deploying to Heroku it just returns a blank page. DB was seeded successfully. Error in the console is "Uncaught SyntaxError: Unexpected token <"
The text was updated successfully, but these errors were encountered: