This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 229
/
README.md.tt
77 lines (51 loc) · 1.51 KB
/
README.md.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# <%= app_name %>
This is a Rails <%= Rails::VERSION::MAJOR %> app.
## Documentation
This README describes the purpose of this repository and how to set up a development environment.
<!-- Links to additional project documentation can go here. -->
## Prerequisites
This project requires:
* Ruby <%= RUBY_VERSION %>, preferably managed using [rbenv][]
* Node and Yarn 1.x (`npm install -g yarn`)
* PostgreSQL must be installed and accepting connections
On a Mac, you can obtain all of the above packages using [Homebrew][].
## Getting started
### bin/setup
Run the `bin/setup` script. This script will:
* Install dependencies using Bundler and Yarn
* Create a `.env.development` file
* Create, migrate, and seed the database
### Run it!
Start the app with `yarn start`.
The app will be located at <http://localhost:3000/>.
## Development
To run the full suite of tests and lint checks, run:
```
$ bin/rake
```
To auto-correct formatting and linting issues, run:
```
$ bin/rake fix
```
## Deployment
Ensure the following environment variables are set in the deployment environment:
* `DATABASE_URL`
* `RACK_ENV`
* `RAILS_ENV`
* `SECRET_KEY_BASE`
Optionally:
* `BASIC_AUTH_PASSWORD`
* `BASIC_AUTH_USERNAME`
* `POSTMARK_API_KEY`
* `RAILS_DISABLE_SSL`
* `RAILS_HOSTNAME`
* `RAILS_LOG_TO_STDOUT`
* `RAILS_MAX_THREADS`
* `RAILS_SERVE_STATIC_FILES`
* `REDIS_URL`
* `SIDEKIQ_CONCURRENCY`
* `SIDEKIQ_WEB_PASSWORD`
* `SIDEKIQ_WEB_USERNAME`
* `WEB_CONCURRENCY`
[rbenv]:https://github.com/sstephenson/rbenv
[Homebrew]:http://brew.sh