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

not clear how to configure the task #1

Open
rvdwijngaard opened this issue Dec 21, 2015 · 1 comment
Open

not clear how to configure the task #1

rvdwijngaard opened this issue Dec 21, 2015 · 1 comment

Comments

@rvdwijngaard
Copy link

Hi,

It is not clear to me how to configure this task. If I read the documentation I would expect if I omit the config section that it will just run mb. That is not the case. I have tried several options but I cannot get it working without altering your code. Am I missing something?

I would prefer to use the global installation of mountebank.

Cheers,
Ron

@bbyars
Copy link
Owner

bbyars commented Jan 13, 2016

Hi there,
Sorry for the slow response - you caught me on vacation. You are correct
that if you leave off the options, it will simply use 'mb' as the path.
However, you can't leave off the entire config section, as the
start/restart/stop keys define the parameters passed to mb. When I tested
using the following config, I was able to confirm it used the global mb
correctly:

mb: {
start: ['--port', 7777, '--allowInjection', '--mock', '--debug',
'--pidfile', 'mb-grunt.pid'],
restart: ['--port', 7777, '--allowInjection', '--mock', '--debug',
'--pidfile', 'mb-grunt.pid'],
stop: ['--pidfile', 'mb-grunt.pid']
}

The grunt log outputs the actual command executed, so for example, in the
config above, I get the following on the console:

Running "mb:restart" (mb) task
mb restart --port 7777 --allowInjection --mock --debug --pidfile
mb-grunt.pid

Can you copy your grunt logs in so I can see what's going on?
Thanks,
-Brandon

On Mon, Dec 21, 2015 at 3:17 PM, Ron van der Wijngaard <
[email protected]> wrote:

Hi,

It is not clear to me how to configure this task If I read the
documentation I would expect if I omit the config section that it will just
run mb That is not the case I have tried several options but I cannot get
it working without altering your code Am I missing something?

I would prefer to use the global installation of mountebank

Cheers,
Ron


Reply to this email directly or view it on GitHub
#1.

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

2 participants