Skip to content
Browse files

Fix .pkgr.yml so that discourse can be packaged with

  • Loading branch information...
crohr committed Mar 26, 2014
1 parent 3631ba2 commit 99772c9ea2a5d653a95ecb07b540586b4370165a
Showing with 15 additions and 5 deletions.
  1. +1 −0 .pkgr.yml
  2. +14 −5 packaging/debian/
@@ -0,0 +1 @@
before_precompile: ./packaging/debian/
@@ -1,8 +1,17 @@
# 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
cp config/redis.yml.sample config/redis.yml
cp config/environments/production.rb.sample config/environments/production.rb
# Not everyone chooses to run discourse behind Apache or Nginx.
cat >> config/environments/production.rb <<EOF
Discourse::Application.configure do
config.serve_static_assets = true

sudo service postgresql start
sudo service redis-server start

1 comment on commit 99772c9


This comment has been minimized.

Copy link

commented on 99772c9 Jan 8, 2016

Well if anyone looking for CCL Fixtures .. this may help

Please sign in to comment.
You can’t perform that action at this time.