You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you get any errors starting or reloading apache, please check the paths above - Ruby 2.0 should be there if you are using RVM, but it could get tricky.
62
+
63
+
## RVM Alternative: Systemwide installation
64
+
65
+
Taken from http://rvm.io/, the commands below installs RVM and users in the 'rvm' group have access to modify state:
66
+
67
+
# Run these commands as your normal login (e.g. "michael") \curl -s -S -L https://get.rvm.io | sudo bash -s stable
68
+
sudo adduser $USER rvm
69
+
newgrp rvm
70
+
. /etc/profile.d/rvm.sh
71
+
rvm requirements
72
+
73
+
# Build and install ruby
74
+
rvm install 2.0.0
75
+
gem install bundler
76
+
77
+
When creating the `discourse` user, add him/her/it to the RVM group:
78
+
79
+
# Run these commands as your normal login (e.g. "michael")
80
+
sudo adduser discourse rvm
81
+
82
+
RVM will be located in `/usr/local/rvm` directory instead of `/home/discourse/.rvm`, so update the crontab line respectively.
Copy file name to clipboardexpand all lines: docs/INSTALL-ubuntu.md
+83-88
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,16 @@
2
2
3
3
## What kind of hardware do you have?
4
4
5
-
- We *strongly* recommend 2GB of memory minimum if you don't want to deal with swap partitions during the install.
6
-
- We recommend at least a dual core CPU.
5
+
- Recommended minimum configuration is:
6
+
- 2GiB of RAM
7
+
- 2GiB of swap
8
+
- 2 processor cores
9
+
- With 2GB of memory and dual cores, you can run two instances of the thin
10
+
server (`NUM_WEBS=2`)
7
11
8
-
1 GB of memory and a single core CPU are the minimums for a steady state, running Discourse forum -- but it's simpler to just throw a bit more hardware at the problem if you can, particularly during the install.
12
+
1 GiB of memory, 3GiB of swap and a single core CPU are the minimums for a
13
+
steady state, running Discourse forum -- but it's simpler to just throw a bit
14
+
more hardware at the problem if you can, particularly during the install.
9
15
10
16
## Install Ubuntu Server 12.04 LTS with the package groups:
11
17
@@ -51,7 +57,13 @@ Install necessary packages:
51
57
sudo apt-get update
52
58
sudo apt-get install redis-server
53
59
54
-
## Web Server Option: nginx
60
+
## Web Server: nginx
61
+
62
+
nginx is used for:
63
+
64
+
* reverse proxy (i.e. load balancer)
65
+
* static asset serving (since you don't want to do that from ruby)
66
+
* anonymous user cache
55
67
56
68
At Discourse, we recommend the latest version of nginx (we like the new and
If you get any errors starting or reloading apache, please check the paths above - Ruby 2.0 should be there if you are using RVM, but it could get tricky.
130
-
131
88
## Install Ruby with RVM
132
89
133
-
### RVM Option: Systemwide installation
134
-
135
-
Taken from http://rvm.io/, the commands below installs RVM and users in the 'rvm' group have access to modify state:
136
-
137
-
# Run these commands as your normal login (e.g. "michael")
Note: in case of RVM system-wide installation RVM will be located in `/usr/local/rvm` directory instead of `/home/discourse/.rvm`, so update the line above respectively.
0 commit comments