mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 07:36:28 +08:00
18 lines
460 B
Bash
Executable File
18 lines
460 B
Bash
Executable File
#!/bin/sh
|
|
# 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 -e
|
|
|
|
# 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
|