Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins
https://nodeclipse.github.io/
158 stars 78 forks source link

setting environment variables in Launch #59

Closed tomotaro1065 closed 11 years ago

tomotaro1065 commented 11 years ago

Moved from Google groups

Posted by Tom Carchrae

Is it possible to set environment variables in a launch configuration? The "Environment" tab is not there in the Node launcher.

As a workaround I made another JS file that sets the variables before it calls the node app and run that instead.

eg

setTimeout(function(){ process.env.NODE_ENV="development"; require("./app.js"); },100);

Tom

ps, Thanks for Nodeclipse - it seems pretty good from my expereince so far.

tomotaro1065 commented 11 years ago

This functionality will be available on next version.

carchrae commented 11 years ago

fantastic. thanks for the super quick response! :)

Uxspy commented 11 years ago

Thanks!

aprosvetova commented 11 years ago

How can i install this version of nodeclipse? (with environment tab)

paulvi commented 11 years ago

Current build is not mavenized #40 and requires manual building plugins, features & update site. Please wait 0.5 release. This time maybe with staging before public release. Help is needed on infrastructure.

tomotaro1065 commented 11 years ago

You can install and try the testing version from following url.

http://www.tomotaro1065.com/nodeclipse/staging/

paulvi commented 11 years ago

Please add thanks as comments on https://nodeclipse.uservoice.com/forums/216804-general