mattn / goreman

foreman clone written in go language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Query: Is it possible to run goreman in windows? Getting issue with using procfile used in linux

sinsharat opened this issue · comments

Hi i am trying to run goreman in windows: using the proc file attached below:

agent-1: mkdir -p agent-1 && cd agent-1 && ../bin/etcd-agent -etcd-path ../bin/etcd -port localhost:19027 -use-root=false
agent-2: mkdir -p agent-2 && cd agent-2 && ../bin/etcd-agent -etcd-path ../bin/etcd -port localhost:29027 -use-root=false
agent-3: mkdir -p agent-3 && cd agent-3 && ../bin/etcd-agent -etcd-path ../bin/etcd -port localhost:39027 -use-root=false
stresser: sleep 1s && bin/etcd-tester -agent-endpoints "localhost:19027,localhost:29027,localhost:39027"  -client-ports 12379,22379,32379 -peer-ports 12380,22380,32380

I am getting the below logs:

PS D:\GO_PROJECTS\src\github.com\coreos\etcd> goreman -f tools/functional-tester/Procfile start
16:22:39 stresser | Starting stresser on port 5003
16:22:39  agent-2 | Starting agent-2 on port 5001
16:22:39  agent-1 | Starting agent-1 on port 5000
16:22:39  agent-3 | Starting agent-3 on port 5002
16:22:39  agent-2 | '..' is not recognized as an internal or external command,
16:22:39  agent-2 | operable program or batch file.
16:22:39  agent-2 | Terminating agent-2
16:22:39 stresser | 'sleep' is not recognized as an internal or external command,
16:22:39 stresser | operable program or batch file.
16:22:39 stresser | Terminating stresser
16:22:39  agent-3 | A subdirectory or file -p already exists.
16:22:39  agent-3 | Error occurred while processing: -p.
16:22:39  agent-3 | Terminating agent-3
16:22:39  agent-1 | A subdirectory or file -p already exists.
16:22:39  agent-1 | Error occurred while processing: -p.
16:22:39  agent-1 | Terminating agent-1

One issue i see is -p instead of taking it as a path for flag is creating another folder with -p. The other issue is its giving error on ../bin/etcd-agent -etcd-path.. for ../bin

commented

Try to type the command (you specified) on your cmd.exe. Maybe you will get errors like below.

goreman error

You should specify the command with backslash not slash.

sure thanks a lot.