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
Copy file name to clipboardExpand all lines: docs/DEVELOPER-ADVANCED.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,18 @@
1
1
# Discourse Advanced Developer Install Guide
2
2
3
-
This guide is aimed at advanced Rails developers who have installed their own Rails apps before. If you are new
4
-
to rails, you are likely much better off with our **[Discourse Vagrant Developer Guide](VAGRANT.md)**.
3
+
This guide is aimed at advanced Rails developers who have installed their own Rails apps before. If you are new to Rails, you are likely much better off with our **[Discourse Vagrant Developer Guide](VAGRANT.md)**.
4
+
5
+
Note: If you are developing on a Mac, you will probably want to look at [these instructions](DEVELOPMENT-OSX-NATIVE.md) as well.
5
6
6
7
## First Steps
7
8
8
9
1. Install and configure PostgreSQL 9.1+. Make sure that the server's messages language is English; this is [required](https://github.com/rails/rails/blob/3006c59bc7a50c925f6b744447f1d94533a64241/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L1140) by the ActiveRecord Postgres adapter.
9
-
2. Install and configure Redis 2+
10
+
2. Install and configure Redis 2+.
10
11
3. Install libxml2, g++, and make.
11
12
4. Install Ruby 1.9.3 and Bundler.
12
13
5. Clone the project and bundle.
13
-
6.Create development and test databases in postgres.
14
-
7.Copy `config/database.yml.development-sample` and `config/redis.yml.sample` to `config/database.yml`and `config/redis.yml` and input the correct values to point to your postgres and redis instances.
14
+
6.Copy `config/database.yml.development-sample` to `config/database.yml`. Copy `config/redis.yml.sample` to `config/redis.yml`. Edit the files to point to your postgres and redis instances.
15
+
7.Create the "vagrant" user and the development and test databases in postgres. See the postgres section in "Building your own Vagrant VM", below.
15
16
8. Install the seed data to set up an admin account and meta topic: `psql DATABASE_NAME < pg_dumps/production-image.sql`
16
17
17
18
@@ -24,7 +25,7 @@ to rails, you are likely much better off with our **[Discourse Vagrant Developer
24
25
5. Try running the specs: `bundle exec rake autospec`
25
26
6.`bundle exec rails server`
26
27
27
-
You should now be able to connect to rails on http://localhost:3000 - try it out! The seed data includes a pinned topic that explains how to get an admin account, so start there! Happy hacking!
28
+
You should now be able to connect to rails on [http://localhost:3000](http://localhost:3000) - try it out! The seed data includes a pinned topic that explains how to get an admin account, so start there! Happy hacking!
0 commit comments