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

main.js serverProcess launch #24

Open
Ulterior opened this issue Dec 8, 2019 · 0 comments
Open

main.js serverProcess launch #24

Ulterior opened this issue Dec 8, 2019 · 0 comments
Assignees
Labels

Comments

@Ulterior
Copy link

Ulterior commented Dec 8, 2019

Hello,

build/bundle eletron-vaadin.exe fails with unhandled exception, due to path issues, when executing from build\bundle\electron-vaadin-win32-x64 directory

main.js serverspawn doesnt take into account resources/app directory where node script is running:

if (platform === 'win32') {
    serverProcess = require('child_process')
        .spawn('cmd.exe', ['/c', 'electron-vaadin.bat'],
            {
                cwd: './electron-vaadin/bin'
            });

cwd needs to be changed to:
cwd: ${__dirname}/electron-vaadin/bin

Thanks for great example project, good luck

@jreznot jreznot self-assigned this Dec 8, 2019
@jreznot jreznot added the bug label Dec 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants