petejkim / nitrogen-dist

Nitrogen: Atom, meet Cloud.
Other
13 stars 1 forks source link

Nitrogen Terminal is not environmentally identical to Nitrous.io Terminal #21

Open VxJasonxV opened 8 years ago

VxJasonxV commented 8 years ago

I've switched almost entirely to Atom + Nitrogen for reasons of keyboard shortcuts and native experience. The Nitrogen terminal in Atom is not set up with the same environment values as the terminal does on the web. Notably, it's missing all the NITROUS_* variables, which makes certain things like the Rails template's start-app script fail.

I see that NITROUS_USERNAME is set in /etc/init/nitrous_bootstrap.conf, but I see no reference to other vars (NITROUS_PREVIEW_PORT, etc.)

I've worked around this issue by setting NITROUS_USERNAME and NITROUS_PREVIEW_PORT in ~/.zshrc, but I don't feel that should be necessary. I also suspect NITROUS_PREVIEW_PORT may change occasionally, and setting it to a static value manually will invariably cause failures in the future.

styner32 commented 8 years ago

Thank you for reporting the bug. I will try to fix it in next release.