2013-10-08 07:52:29 -05:00
|
|
|
#!/bin/sh
|
2014-03-26 09:56:25 -05:00
|
|
|
# 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.
|
2013-10-08 07:52:29 -05:00
|
|
|
|
2014-03-26 09:56:25 -05:00
|
|
|
set -e
|
2013-10-08 07:52:29 -05:00
|
|
|
|
2014-03-26 09:56:25 -05:00
|
|
|
# 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
|
|
|
|
end
|
|
|
|
EOF
|
|
|
|
|
|
|
|
sudo service postgresql start
|
|
|
|
sudo service redis-server start
|