Skip to content

Commit 07e7a44

Browse files
committed
Clarify install doc wrt how to create databases
1 parent be6ca8d commit 07e7a44

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

docs/DEVELOPER-ADVANCED.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# Discourse Advanced Developer Install Guide
22

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.
56

67
## First Steps
78

89
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+.
1011
3. Install libxml2, g++, and make.
1112
4. Install Ruby 1.9.3 and Bundler.
1213
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.
1516
8. Install the seed data to set up an admin account and meta topic: `psql DATABASE_NAME < pg_dumps/production-image.sql`
1617

1718

@@ -24,7 +25,7 @@ to rails, you are likely much better off with our **[Discourse Vagrant Developer
2425
5. Try running the specs: `bundle exec rake autospec`
2526
6. `bundle exec rails server`
2627

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!
2829

2930

3031
# Building your own Vagrant VM

docs/DEVELOPMENT-OSX-NATIVE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Atlassan has a free GIT client for OS X called [SourceTree](http://www.sourcetre
9292

9393
OS X ships with Postgres 9.1.5, but you're better off going with the latest from Homebrew or [Postgres.App](http://postgresapp.com).
9494

95-
### Using Postgress.app
95+
### Using Postgres.app
9696

9797
[Instructions pending]
9898

0 commit comments

Comments
 (0)