Add new apt deps, missing yarn install

pull/13/head
raucao 5 years ago
parent 063ebeb7c3
commit 2f6ab1e0b1
  1. 15
      site-cookbooks/kosmos-mastodon/recipes/default.rb

@ -6,9 +6,9 @@
#
# All rights reserved - Do Not Redistribute
#
include_recipe "kosmos-nodejs"
include_recipe "kosmos-redis"
node.override['postgresql']['enable_pgdg_apt'] = false
include_recipe "postgresql::server"
include_recipe "postgresql::ruby"
@ -41,8 +41,10 @@ user "mastodon" do
home mastodon_path
end
package %w(imagemagick ffmpeg libxml2-dev libxslt1-dev file git curl pkg-config libprotobuf-dev protobuf-compiler)
node_package %w(yarn) # Used by Rails' assets pipeline
package %w(imagemagick ffmpeg libxml2-dev libxslt1-dev file git curl pkg-config
libprotobuf-dev protobuf-compiler libidn11 libidn11-dev)
node_package %w(yarn)
ruby_version = "2.4.1"
@ -97,6 +99,13 @@ application mastodon_path do
without %w(development test)
end
execute do
environment "HOME" => mastodon_path
user "mastodon"
cwd mastodon_path
command "yarn install --pure-lockfile"
end
rails do
migrate true
rails_env "production"

Loading…
Cancel
Save