diff --git a/site-cookbooks/kosmos-mastodon/recipes/default.rb b/site-cookbooks/kosmos-mastodon/recipes/default.rb index dc8dbee..7cc1f36 100644 --- a/site-cookbooks/kosmos-mastodon/recipes/default.rb +++ b/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"