Add postgres support in packager

This commit is contained in:
Oliver Günther
2018-12-10 14:58:23 +01:00
parent f2d4ca68f5
commit 01fd9cd2e2
3 changed files with 2 additions and 13 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
https://github.com/pkgr/pkgr-buildpack-imagemagick.git
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1
https://github.com/istrategylabs/heroku-buildpack-node-cleanup
+1 -1
View File
@@ -29,7 +29,7 @@ services:
installer: https://github.com/pkgr/installer.git
wizards:
- https://github.com/pkgr/addon-legacy-installer.git
- https://github.com/pkgr/addon-mysql.git
- https://github.com/pkgr/addon-postgres
- https://github.com/pkgr/addon-apache2.git
- https://github.com/finnlabs/addon-repositories.git
- https://github.com/pkgr/addon-smtp.git
-11
View File
@@ -47,16 +47,6 @@ namespace :packager do
# avoids to load the environment multiple times.
# Removes older assets
task postinstall: [:environment, 'assets:clean', 'setup:scm'] do
# We need to precompile assets when either
# 1. packager requested it (e.g., due to a server prefix being set)
# 2. When a custom Gemfile is added
if ENV['REBUILD_ASSETS'] == 'true'
Rake::Task['assets:precompile'].invoke
FileUtils.chmod_R 'a+rx', "#{ENV['APP_HOME']}/public/assets/"
shell_setup(['config:set', 'REBUILD_ASSETS=""'])
end
# Clear any caches
OpenProject::Cache.clear
@@ -96,7 +86,6 @@ namespace :packager do
new_root = relative_root.chomp('/')
shell_setup(['config:set', "RAILS_RELATIVE_URL_ROOT=#{new_root}"])
shell_setup(['config:set', 'REBUILD_ASSETS="true"'])
end
end