mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Merge pull request #2186 from pkgr/pkgr
Automatically generate a debian package
This commit is contained in:
commit
79caebc00e
3 changed files with 16 additions and 6 deletions
1
.pkgr.yml
Normal file
1
.pkgr.yml
Normal file
|
@ -0,0 +1 @@
|
|||
before_precompile: ./packaging/debian/setup.sh
|
|
@ -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…
Add table
Add a link
Reference in a new issue