mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 06:25:43 +08:00
Merge pull request #1754 from trident523/patch-1
Update INSTALL-ubuntu.md
This commit is contained in:
commit
3189586d15
@ -168,28 +168,18 @@ Configure Discourse:
|
|||||||
|
|
||||||
# Run these commands as the discourse user
|
# Run these commands as the discourse user
|
||||||
cd /var/www/discourse/config
|
cd /var/www/discourse/config
|
||||||
cp database.yml.production-sample database.yml
|
cp discourse_defaults.conf discourse.conf
|
||||||
cp redis.yml.sample redis.yml
|
|
||||||
cp discourse.pill.sample discourse.pill
|
|
||||||
cp environments/production.rb.sample environments/production.rb
|
|
||||||
|
|
||||||
Edit /var/www/discourse/config/database.yml
|
Editing /var/www/discourse/config/discourse.conf:
|
||||||
|
|
||||||
- change production database name if appropriate
|
Database/Hostname:
|
||||||
- change database username/password if appropriate
|
- change database username/password if appropriate
|
||||||
- if you are hosting multiple Discourse forums on the same server (multisite), set `db_id`
|
- change `hostname` to the name you'll use to access the discourse site, e.g. "forum.example.com"
|
||||||
- change `host_names` to the name you'll use to access the discourse site, e.g. "forum.example.com"
|
|
||||||
|
|
||||||
Edit /var/www/discourse/config/redis.yml
|
|
||||||
|
|
||||||
|
Redis:
|
||||||
- no changes if this is the only application using redis, but have a look
|
- no changes if this is the only application using redis, but have a look
|
||||||
|
|
||||||
Edit /var/www/discourse/config/discourse.pill
|
E-mail:
|
||||||
|
|
||||||
- change application name from 'discourse' if necessary
|
|
||||||
- Ensure appropriate Bluepill.application line is uncommented
|
|
||||||
|
|
||||||
Edit /var/www/discourse/config/environments/production.rb
|
|
||||||
- browse througn all the settings
|
- browse througn all the settings
|
||||||
- be sure to add your mail server SMTP settings so outgoing mail can be sent (we recommend [Mandrill](https://mandrillapp.com))
|
- be sure to add your mail server SMTP settings so outgoing mail can be sent (we recommend [Mandrill](https://mandrillapp.com))
|
||||||
- If your users will come from "internal" [private unroutable IPs](https://en.wikipedia.org/wiki/Private_network) like 10.x.x.x or 192.168.x.x please [see this topic](http://meta.discourse.org/t/all-of-my-internal-users-show-as-coming-from-127-0-0-1/6607).
|
- If your users will come from "internal" [private unroutable IPs](https://en.wikipedia.org/wiki/Private_network) like 10.x.x.x or 192.168.x.x please [see this topic](http://meta.discourse.org/t/all-of-my-internal-users-show-as-coming-from-127-0-0-1/6607).
|
||||||
@ -349,9 +339,7 @@ Check the sample configuration files provided in the repo with the ones being us
|
|||||||
|
|
||||||
# Run these commands as the discourse user
|
# Run these commands as the discourse user
|
||||||
cd /var/www/discourse
|
cd /var/www/discourse
|
||||||
diff -u config/discourse.pill.sample config/discourse.pill
|
diff -u config/discourse_defaults.comf config/discourse.conf
|
||||||
diff -u config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
|
|
||||||
diff -u config/environments/production.rb.sample config/environments/production.rb
|
|
||||||
|
|
||||||
#### Example 1
|
#### Example 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user