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
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,18 +11,17 @@ to rails, you are likely much better off with our **[Discourse Vagrant Developer
11
11
3. Clone the project.
12
12
4. Create development and test databases in postgres.
13
13
5. Copy `config/database.yml.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.We recommend starting with seed data to play around in your development environment. [Download Seed SQL Data](http://www.discourse.org/vms/dev-discourse-seed.sql). Install it into postgres using a command like this: `psql -d discourse_development < dev-discourse-seed.sql`.
14
+
6.Install the seed data to set up an admin account and meta topic: `psql DATABASE_NAME < pg_dumps/production-image.sql`
15
15
16
16
17
17
## Before you start Rails
18
18
19
19
1.`bundle install`
20
-
2.`rake db:create`
21
-
3.`rake db:migrate`
22
-
4.`rake db:test:prepare`
23
-
5.`rake db:seed_fu`
24
-
6. Try running the specs: `bundle exec rspec`
25
-
7.`bundle exec rails server`
20
+
2.`rake db:migrate`
21
+
3.`rake db:test:prepare`
22
+
4.`rake db:seed_fu`
23
+
5. Try running the specs: `bundle exec rspec`
24
+
6.`bundle exec rails server`
26
25
27
26
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
27
@@ -34,7 +33,7 @@ Here are the steps we used to create the **[Vagrant Virtual Machine](https://git
34
33
35
34
## Base box
36
35
37
-
Vagrant version 1.0.5. With this Vagrantfile:
36
+
Vagrant version 1.1.2. With this Vagrantfile:
38
37
39
38
Vagrant::Config.run do |config|
40
39
config.vm.box = 'precise32'
@@ -77,8 +76,8 @@ Vagrant version 1.0.5. With this Vagrantfile:
77
76
adduser vagrant rvm
78
77
source /etc/profile.d/rvm.sh
79
78
su - vagrant -c "rvm pkg install libyaml"
80
-
su - vagrant -c "rvm install 1.9.3-p374"
81
-
su - vagrant -c "rvm use 1.9.3-p374 --default"
79
+
su - vagrant -c "rvm install 2.0.0-turbo"
80
+
su - vagrant -c "rvm use 2.0.0-turbo --default"
82
81
83
82
echo "gem: --no-rdoc --no-ri" >> /etc/gemrc
84
83
su - vagrant -c "echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc"
@@ -93,6 +92,7 @@ Configure so that the vagrant user doesn't need to provide username and password
93
92
psql -c "ALTER USER vagrant WITH PASSWORD 'password';"
0 commit comments