-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Ability to override config properties via command line arguments #61
Comments
Can't you have a separate config file per "project" with static port numbers ? That's what we do on Angular CI server. Anyway, the whole port = process.env.MY_PORT;
proxies = {
'/web/': 'http://localhost:' + port + '/'
}; And then:
Besides that, it would be possible to configure proxies through CLI options, doing something like this:
But I'm not super crazy about it :-D |
The problem is that we evaluate the port at build time and we set it dynamically. But the last hint with the CLI option worked. I tried it already but I didn't know the notation of a json object as a command line parameter ;). Thanks for your fast answer! PS: I think we can close the issue now ;). |
I still vote for this feature. |
…ML URL encoded characters. Karma fails on Jenkins when it checks out branches containing '/' as it converts it to '%2F'. Fixes errors seen on karma-runner#1751, karma-runner#61.
…ML URL encoded characters. Karma fails on Jenkins when it checks out branches containing '/' as it converts it to '%2F'. Fixes errors seen on karma-runner#1751, karma-runner#61.
Hi,
we have a CI environment where we run multiple projects and each one has e webapp running for the tests. Now we have some kind of logic which searches a free port to start the server and tell the application on which port the server is running. Now i just found out that I could override the port setting in the config by starting testacular with this command line argument:
--port=1234
But I can't create objects in the command line to use for example for the proxies property. Is there a possibility to add them via command line arguments or system properties ?
Thanks and regards,
Guy
The text was updated successfully, but these errors were encountered: