mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Fix .pkgr.yml so that discourse can be packaged with https://pkgr.io.
This commit is contained in:
parent
3631ba2eb5
commit
99772c9ea2
2 changed files with 15 additions and 5 deletions
1
.pkgr.yml
Normal file
1
.pkgr.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
before_precompile: ./packaging/debian/setup.sh
|
|
@ -1,8 +1,17 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# This script installs the required example config files before buildpack compilation.
|
# This script sets up the required config files before buildpack compilation.
|
||||||
|
#
|
||||||
|
# It also launches a postgresql server and a redis server, otherwise some rake
|
||||||
|
# tasks can't be completed.
|
||||||
|
|
||||||
set -ex
|
set -e
|
||||||
|
|
||||||
cp config/database.yml.production-sample config/database.yml
|
# Not everyone chooses to run discourse behind Apache or Nginx.
|
||||||
cp config/redis.yml.sample config/redis.yml
|
cat >> config/environments/production.rb <<EOF
|
||||||
cp config/environments/production.rb.sample config/environments/production.rb
|
Discourse::Application.configure do
|
||||||
|
config.serve_static_assets = true
|
||||||
|
end
|
||||||
|
EOF
|
||||||
|
|
||||||
|
sudo service postgresql start
|
||||||
|
sudo service redis-server start
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue