carpoolear
carpoolear copied to clipboard
How put front server in /app folder for url
Hi i have problem with url , i create a sub domain for backend file but send me problems with CORS so could you explain how create structure like http://localhost/app for front server and mantain http://localhost for back server i use ubuntu..
thanksyou
You have to push the frontend web build code into the public folder of the backend. You can make a symbolic link
By symbolic link, do you mean virtual host?
No, I meant symbolic link. https://www.shellhacks.com/symlink-create-symbolic-link-linux/
so should be ln -s /home/Desktop/carpoolear /Home/Desktop/carpoolear_backend/public/app
or ?
Yes something like that. Assuming that in /home/Desktop/carpoolear is the build of the front-end project
@kfranco did you resolve this issue? I am getting a blank page when the dist content is put to the public/app path and php server is deployed. npm run dev works fine.
You have to use the cordova browser build folder in order to work.