Skip to content

Commit

Permalink
fix: spawn server with args correctly
Browse files Browse the repository at this point in the history
This should also support windows then.

ref: #32
  • Loading branch information
schettn committed Oct 9, 2024
1 parent f565749 commit aa340f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/pylon-dev/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ async function main(options: ArgOptions, command: Command) {
})
}

currentProc = spawn(options.command, {
const [commandName, ...args] = options.command.split(' ')

currentProc = spawn(commandName, args, {
shell: true,
stdio: 'inherit',
env: {
Expand Down

1 comment on commit aa340f7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for pylon-docs ready!

✅ Preview
https://pylon-docs-i14wavw86-schettns-projects.vercel.app

Built with commit aa340f7.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.