carpoolear icon indicating copy to clipboard operation
carpoolear copied to clipboard

How put front server in /app folder for url

Open kfranco89 opened this issue 5 years ago • 7 comments

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

kfranco89 avatar Apr 08 '19 03:04 kfranco89

You have to push the frontend web build code into the public folder of the backend. You can make a symbolic link

p4bl1t0 avatar Apr 08 '19 11:04 p4bl1t0

By symbolic link, do you mean virtual host?

kfranco89 avatar Apr 08 '19 12:04 kfranco89

No, I meant symbolic link. https://www.shellhacks.com/symlink-create-symbolic-link-linux/

p4bl1t0 avatar Apr 09 '19 01:04 p4bl1t0

so should be ln -s /home/Desktop/carpoolear /Home/Desktop/carpoolear_backend/public/app

or ?

kfranco89 avatar Apr 09 '19 16:04 kfranco89

Yes something like that. Assuming that in /home/Desktop/carpoolear is the build of the front-end project

p4bl1t0 avatar Apr 09 '19 20:04 p4bl1t0

@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.

raditha avatar Jun 24 '20 14:06 raditha

You have to use the cordova browser build folder in order to work.

p4bl1t0 avatar Jul 02 '20 11:07 p4bl1t0