We install nodejs from package, update paths
This commit is contained in:
parent
d26d2e17fd
commit
c3933012dd
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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'] }
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue