mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 11:44:06 -06:00
Merge pull request #2186 from pkgr/pkgr
Automatically generate a debian package
This commit is contained in:
commit
79caebc00e
@ -43,7 +43,7 @@ module JsLocaleHelper
|
||||
end
|
||||
|
||||
def self.moment_format_function(name)
|
||||
format = I18n.t("dates." << name)
|
||||
format = I18n.t("dates.#{name}")
|
||||
result = "moment.fn.#{name.camelize(:lower)} = function(){ return this.format('#{format}'); };\n"
|
||||
end
|
||||
|
||||
|
@ -1,8 +1,17 @@
|
||||
#!/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
|
||||
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
|
||||
end
|
||||
EOF
|
||||
|
||||
sudo service postgresql start
|
||||
sudo service redis-server start
|
||||
|
Loading…
Reference in New Issue
Block a user