mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Update DEVELOPMENT-OSX-NATIVE.MD
Changes: - Re Order the steps - Remove postgres 9.2 comment on postgres installation via homebrew (homebrew will always install the latest stable version of postgres) - Remove trailing whitespace - Update clone instruction - Adding `rake db:create` before any other database action (as it assume new development) - Remove therubyracer additional steps as it considered as obsolete
This commit is contained in:
@@ -14,6 +14,7 @@ If you don't already have a Ruby environment that's tuned to your liking, you ca
|
||||
2. Clone the Discourse repo and cd into it.
|
||||
3. Run `script/osx_dev`.
|
||||
4. Review `log/osx_dev.log` to make sure everything finished successfully.
|
||||
5. Jump To [Setting up your Discourse](#setting-up-your-discourse)
|
||||
|
||||
Of course, it is good to understand what the script is doing and why. The rest of this guide goes through what's happening.
|
||||
|
||||
@@ -152,7 +153,7 @@ However, the seed data currently has some dependencies on their being a 'postgre
|
||||
|
||||
In theory, you're not setting up with vagrant, either, and shouldn't need a vagrant user; however, again, all the seed data assumes 'vagrant'. To avoid headaches, it's probably best to go with this flow, so again, we create a 'vagrant' user.
|
||||
|
||||
brew install postgresql # Installs 9.2
|
||||
brew install postgresql
|
||||
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
|
||||
|
||||
export PATH=/usr/local/opt/postgresql/bin:$PATH # You may want to put this in your default path!
|
||||
@@ -230,19 +231,6 @@ outbound email and you can verify what is being sent.
|
||||
|
||||
## Additional Setup Tasks
|
||||
|
||||
You may have issues installing therubyracer when running `bundle install`
|
||||
because of a dependency on libv8. This is how to fix it:
|
||||
|
||||
```sh
|
||||
brew tap homebrew/versions
|
||||
brew uninstall v8
|
||||
brew install v8-315
|
||||
gem uninstall -a libv8
|
||||
gem uninstall -a therubyracer
|
||||
gem install libv8 -v '3.16.14.13' -- --with-system-v8
|
||||
gem install therubyracer -v '0.12.2' -- --with-v8-dir=$(brew --prefix v8-315)
|
||||
```
|
||||
|
||||
In addition to ImageMagick we also need to install some other image related
|
||||
software:
|
||||
|
||||
@@ -263,28 +251,31 @@ make install
|
||||
## Setting up your Discourse
|
||||
|
||||
### Check out the repository
|
||||
|
||||
git@github.com:discourse/discourse.git ~/discourse
|
||||
cd ~/discourse # Navigate into the repository, and stay there for the rest of this how-to
|
||||
|
||||
```sh
|
||||
git clone git@github.com:discourse/discourse.git
|
||||
cd discourse # Navigate into the repository, and stay there for the rest of this how-to
|
||||
```
|
||||
### What about the config files?
|
||||
|
||||
If you've stuck to all the defaults above, the default `discourse.conf` and `redis.conf` should work out of the box.
|
||||
|
||||
### Install the needed gems
|
||||
|
||||
bundle install # Yes, this DOES take a while. No, it's not really cloning all of rubygems :-)
|
||||
```sh
|
||||
bundle install
|
||||
```
|
||||
|
||||
### Prepare your database
|
||||
|
||||
rake db:migrate
|
||||
rake db:test:prepare
|
||||
rake db:seed_fu
|
||||
```sh
|
||||
rake db:create
|
||||
rake db:migrate
|
||||
rake db:test:prepare
|
||||
rake db:seed_fu
|
||||
```
|
||||
|
||||
## Now, test it out!
|
||||
|
||||
bundle exec rspec
|
||||
|
||||
```sh
|
||||
bundle exec rspec
|
||||
```
|
||||
All specs should pass
|
||||
|
||||
### Deal with any problems which arise.
|
||||
|
||||
Reference in New Issue
Block a user