mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
Fix indentation of markdown code blocks
This commit is contained in:
@@ -20,11 +20,11 @@ hosted at GitHub.
|
||||
|
||||
You can view the code at:
|
||||
|
||||
https://github.com/andrewspinks/openfoodweb
|
||||
https://github.com/andrewspinks/openfoodweb
|
||||
|
||||
You can download the source with the command:
|
||||
|
||||
git clone git@github.com:andrewspinks/openfoodweb
|
||||
git clone git@github.com:andrewspinks/openfoodweb
|
||||
|
||||
|
||||
## Get it running
|
||||
@@ -33,41 +33,41 @@ For those new to Rails, the following tutorial will help get you up to speed wit
|
||||
|
||||
First, check your dependencies: Ensure that you have Ruby 1.9.x installed:
|
||||
|
||||
ruby --version
|
||||
ruby --version
|
||||
|
||||
Install the project's gem dependencies:
|
||||
|
||||
bundle install
|
||||
bundle install
|
||||
|
||||
Create the development and test databases, using the settings specified in `config/database.yml`. You can then load the schema and some seed data with the following command:
|
||||
|
||||
rake db:schema:load db:seed
|
||||
rake db:schema:load db:seed
|
||||
|
||||
At long last, your dreams of spinning up a development server can be realised:
|
||||
|
||||
rails server
|
||||
rails server
|
||||
|
||||
|
||||
## Testing
|
||||
|
||||
Tests, both unit and integration, are based on RSpec. To run the test suite, first prepare the test database:
|
||||
|
||||
bundle exec rake db:test:load
|
||||
bundle exec rake db:test:load
|
||||
|
||||
Then the tests can be run with:
|
||||
|
||||
bundle exec rspec spec
|
||||
bundle exec rspec spec
|
||||
|
||||
The site is configured to use
|
||||
[Spork](https://github.com/sporkrb/spork) to reduce the pre-test
|
||||
startup time while Rails loads. To use it, first start up a spork
|
||||
instance:
|
||||
|
||||
bundle exec spork
|
||||
bundle exec spork
|
||||
|
||||
When that's ready, you can run RSpec with the --drb flag:
|
||||
|
||||
bundle exec rspec --drb spec
|
||||
bundle exec rspec --drb spec
|
||||
|
||||
|
||||
## Deployment
|
||||
|
||||
Reference in New Issue
Block a user