We install nodejs from package, update paths

This commit is contained in:
Greg 2018-04-17 13:19:23 +02:00
parent d26d2e17fd
commit c3933012dd
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ end
package %w(imagemagick ffmpeg libxml2-dev libxslt1-dev file git curl pkg-config
libprotobuf-dev protobuf-compiler libidn11 libidn11-dev libjemalloc1)
node_package "yarn" do
npm_package "yarn" do
version "1.3.2"
end

View File

@ -7,7 +7,7 @@ User=<%= @user %>
WorkingDirectory=<%= @app_dir %>
Environment="NODE_ENV=production"
Environment="PORT=<%= @port %>"
ExecStart=/usr/local/bin/npm run start
ExecStart=/usr/bin/npm run start
TimeoutSec=15
Restart=always

View File

@ -52,7 +52,7 @@ application path_to_deploy do
user: "sockethub",
group: "sockethub",
app_dir: path_to_deploy,
entry: "/usr/local/bin/node /usr/local/bin/npm start",
entry: "/usr/bin/node /usr/bin/npm start",
environment: { 'DEBUG' => '*',
'PORT' => node['sockethub']['port'] }
)