- From: David Montgomery <
>
- To:
- Subject: [chef] Adding path to env variable how to PATH=/path/to/folder:$PATH
- Date: Sat, 7 Jul 2012 09:00:30 +0800
Hi,
I use the below to create an env variable.
export 'NODE_ENV=development
execute "start_servers" do
command "supervisorctl start tornado_server:; supervisorctl start
nodejs_server:"
action :run
environment ({'NODE_ENV' => '#{node.chef_environment}'})
not_if {File.exists?("/tmp/sup_first_start_2")}
end
How would I do this?
PATH=/path/to/folder:$PATH
Thakns
- [chef] Adding path to env variable how to PATH=/path/to/folder:$PATH, David Montgomery, 07/06/2012
Archive powered by MHonArc 2.6.16.