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

problem with the build of project in php #25

Open
adadros opened this issue Oct 8, 2020 · 10 comments
Open

problem with the build of project in php #25

adadros opened this issue Oct 8, 2020 · 10 comments

Comments

@adadros
Copy link

adadros commented Oct 8, 2020

hello. I have a problem to build the project. It works fine with npm start so the problem is with the build apparently everything is compile and then when i want to excecute it shows a white screen without errors. Could you help me?. Too I try to use electron-builder with nsis and the result is the same.

Has anyone tried to build his project and
got good results?.

I am use win10 , electron v10.1.3, node v12.18.0

@johnhart96
Copy link

Hi.

I have the same problem. It is the problem with the PHP server not starting. Works fine with npm start but once built it fails to start the php server

@aj-techsoul
Copy link
Owner

aj-techsoul commented Mar 1, 2021 via email

@johnhart96
Copy link

Could you be so kind to explain how this is done?

@aj-techsoul
Copy link
Owner

aj-techsoul commented Mar 1, 2021 via email

@johnhart96
Copy link

Do you mean in the package.json file or in the src directory.

Sorry I don't fully understand what you mean.

@aj-techsoul
Copy link
Owner

aj-techsoul commented Mar 1, 2021 via email

@adadros
Copy link
Author

adadros commented Mar 1, 2021

Well i solved my problem using a portable version of xampp server and include them in the src in the package.json as extra files, then i made a .bat that executes the folder of apache server "xampp/apache/bin/httpd.exe" in the installation directory of extra files. I wait 10 seconds before initialize my window because the apache is starting. Then i create the window that load a url con php.
when you execute "httpd.exe" in the xampp folder, php server initialize and you can open your project in xampp/htdocs/yourproject, then in electron you can load the url using for example:

mainWindow.loadURL('http://localhost:80/yourproject')

@aj-techsoul
Copy link
Owner

aj-techsoul commented Mar 2, 2021 via email

@adadros
Copy link
Author

adadros commented Mar 2, 2021

At the end i had to change of solution because i had the time on me and the portable xamp version was a fast solution for me. however i would like to test the python version, i will waiting when you release it

@aj-techsoul
Copy link
Owner

aj-techsoul commented Mar 2, 2021 via email

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