Add new apt deps, missing yarn install

This commit is contained in:
Basti 2017-07-27 12:07:56 +02:00
parent 063ebeb7c3
commit 2f6ab1e0b1
1 changed files with 12 additions and 3 deletions

View File

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