Skip to content
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

How put front server in /app folder for url #47

Open
kfranco89 opened this issue Apr 8, 2019 · 7 comments
Open

How put front server in /app folder for url #47

kfranco89 opened this issue Apr 8, 2019 · 7 comments

Comments

@kfranco89
Copy link

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

@p4bl1t0
Copy link
Contributor

p4bl1t0 commented Apr 8, 2019

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

@kfranco89
Copy link
Author

By symbolic link, do you mean virtual host?

@p4bl1t0
Copy link
Contributor

p4bl1t0 commented Apr 9, 2019

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

@kfranco89
Copy link
Author

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

or ?

@p4bl1t0
Copy link
Contributor

p4bl1t0 commented Apr 9, 2019

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

@raditha
Copy link

raditha commented Jun 24, 2020

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

@p4bl1t0
Copy link
Contributor

p4bl1t0 commented Jul 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants