mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #4483 from bekicot/update-development-osx-native
Update DEVELOPMENT-OSX-NATIVE.MD
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.
|
2. Clone the Discourse repo and cd into it.
|
||||||
3. Run `script/osx_dev`.
|
3. Run `script/osx_dev`.
|
||||||
4. Review `log/osx_dev.log` to make sure everything finished successfully.
|
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.
|
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.
|
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
|
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!
|
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
|
## 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
|
In addition to ImageMagick we also need to install some other image related
|
||||||
software:
|
software:
|
||||||
|
|
||||||
@@ -263,28 +251,31 @@ make install
|
|||||||
## Setting up your Discourse
|
## Setting up your Discourse
|
||||||
|
|
||||||
### Check out the repository
|
### Check out the repository
|
||||||
|
```sh
|
||||||
git@github.com:discourse/discourse.git ~/discourse
|
git clone git@github.com:discourse/discourse.git
|
||||||
cd ~/discourse # Navigate into the repository, and stay there for the rest of this how-to
|
cd discourse # Navigate into the repository, and stay there for the rest of this how-to
|
||||||
|
```
|
||||||
### What about the config files?
|
### 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.
|
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
|
### Install the needed gems
|
||||||
|
```sh
|
||||||
bundle install # Yes, this DOES take a while. No, it's not really cloning all of rubygems :-)
|
bundle install
|
||||||
|
```
|
||||||
|
|
||||||
### Prepare your database
|
### Prepare your database
|
||||||
|
```sh
|
||||||
rake db:migrate
|
rake db:create
|
||||||
rake db:test:prepare
|
rake db:migrate
|
||||||
rake db:seed_fu
|
rake db:test:prepare
|
||||||
|
rake db:seed_fu
|
||||||
|
```
|
||||||
|
|
||||||
## Now, test it out!
|
## Now, test it out!
|
||||||
|
```sh
|
||||||
bundle exec rspec
|
bundle exec rspec
|
||||||
|
```
|
||||||
All specs should pass
|
All specs should pass
|
||||||
|
|
||||||
### Deal with any problems which arise.
|
### Deal with any problems which arise.
|
||||||
|
|||||||
Reference in New Issue
Block a user