ericclemmons / grunt-express-server

Grunt task for running an Express Server that works great with LiveReload + Watch/Regarde

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to add other environment variables

leszekhanusz opened this issue · comments

Currently, it is only possible to change the port and node_env environment variables.

I would like to set another environment variable.
In my case it is LIVERELOAD_PORT to be able to change the livereload port from the Gruntfile.js

Actually the whole process.env is passed to the child here

You could probably change the env programmatically with this

Thanks.