It's now 'rails', not 'rake'

Also has some wording updates as people have shown up in #lobsters confused
about running the dev mode in prod, etc.
This commit is contained in:
Peter Bhat Harkins 2018-10-11 13:28:35 -05:00
parent 2234631f85
commit 5f18cd222b
1 changed files with 12 additions and 6 deletions

View File

@ -73,7 +73,7 @@ running tests:
* Load the schema into the new database:
```sh
lobsters$ rake db:schema:load
lobsters$ rails db:schema:load
```
* Define your site's name and default domain, which are used in various places,
@ -98,22 +98,28 @@ in a `config/initializers/production.rb` or similar file:
* Seed the database to create an initial administrator user, the `inactive-user`, and at least one tag:
```sh
lobsters$ rake db:seed
lobsters$ rails db:seed
```
* Run the Rails server in development mode. You should be able to login to
`http://localhost:3000` with your new `test` user:
* On your personal computer, you can add some sample data and run the Rails server in development mode.
You should be able to login to `http://localhost:3000` with your new `test` user:
```sh
lobsters$ rails fake_data
lobsters$ rails server
```
* In production, set up crontab or another scheduler to run regular jobs:
* Deploying the site in production requires setting up a web server and running the app in production mode.
There are more tools and options available than we can describe; find a guide or an expert.
The lobsters-ansible repo has our config files to crib from. Some app-specific notes:
* Set up crontab or another scheduler to run regular jobs:
```
*/5 * * * * cd /path/to/lobsters && env RAILS_ENV=production sh -c 'bundle exec ruby script/mail_new_activity; bundle exec ruby script/post_to_twitter'
```
* In production, see `config/initializers/production.rb.sample` for GitHub/Twitter integration help.
* See `config/initializers/production.rb.sample` for GitHub/Twitter integration help.
#### Administration