diff --git a/site-cookbooks/kosmos-mastodon/recipes/default.rb b/site-cookbooks/kosmos-mastodon/recipes/default.rb index 5fb473b..143560c 100644 --- a/site-cookbooks/kosmos-mastodon/recipes/default.rb +++ b/site-cookbooks/kosmos-mastodon/recipes/default.rb @@ -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 diff --git a/site-cookbooks/kosmos-mastodon/templates/default/mastodon-streaming.systemd.service.erb b/site-cookbooks/kosmos-mastodon/templates/default/mastodon-streaming.systemd.service.erb index 7756124..dfdc7ff 100644 --- a/site-cookbooks/kosmos-mastodon/templates/default/mastodon-streaming.systemd.service.erb +++ b/site-cookbooks/kosmos-mastodon/templates/default/mastodon-streaming.systemd.service.erb @@ -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 diff --git a/site-cookbooks/sockethub/recipes/default.rb b/site-cookbooks/sockethub/recipes/default.rb index e5afd45..201a803 100644 --- a/site-cookbooks/sockethub/recipes/default.rb +++ b/site-cookbooks/sockethub/recipes/default.rb @@ -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'] } )