mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Add postgres support in packager
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user