This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-15
lines changed Expand file tree Collapse file tree 3 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 6
6
# optional
7
7
#
8
8
# DB_NAME
9
+ # DB_HOST
10
+ # DB_PASSWORD
11
+ # DB_PORT
12
+ # DB_USERNAME
9
13
# DEFAULT_URL_HOST
10
14
# DEFAULT_URL_PORT
11
15
# DEFAULT_URL_SCHEME
18
22
19
23
# production only
20
24
#
21
- # DB_HOST
22
- # DB_PASSWORD
23
- # DB_PORT
24
- # DB_USERNAME
25
25
# SECRET_TOKEN
Original file line number Diff line number Diff line change @@ -41,21 +41,25 @@ cd C2
41
41
To get the database and tests running:
42
42
43
43
1 . Install Node.js 0.10
44
- 1 . Start PostgreSQL.
44
+ 1 . Start PostgreSQL. You will need to be able to create databases; set the
45
+ ` DB_ ` * variables in your environment if needed.
45
46
1 . Run ` script/bootstrap ` , which will print "DONE" if successful. * NOTE: This will delete any existing records in your C2 database.*
46
47
1 . Run the specs with ` bundle exec rspec spec ` at the command line.
47
48
* To run tests automatically as files are changed, run ` bundle exec guard ` .
48
49
1 . Run the frontend tests with ` grunt jasmine ` .
49
50
50
51
To see previews of the mailers:
51
52
52
- * Start the server, and visit http://localhost:3000/mail_view/ .
53
+ * Start the server ( ` bundle exec rails server ` ) , and visit http://localhost:3000/mail_view/ .
53
54
54
55
To get the app running:
55
56
56
- 1 . Register an application on [ MyUSA] ( https://myusa-staging.18f.us/authorizations )
57
- 1 . Modify [ ` .env ` ] ( .env.example )
57
+ 1 . Register an application on [ MyUSA] ( https://myusa-staging.18f.us/authorizations ) .
58
+ Note that your application will need access to the user's email.
59
+ 1 . Modify [ ` .env ` ] ( .env.example ) . In particular, be sure to set the ` MYUSA_KEY `
60
+ and ` MYUSA_SECRET ` values based on the above and set ` MYUSA_URL ` to
61
+ ` https://myusa-staging.18f.us ` .
58
62
59
63
## More info
60
64
61
- * [ Capistrano commands] ( docs /capistrano.md)
65
+ * [ Capistrano commands] ( doc /capistrano.md)
Original file line number Diff line number Diff line change @@ -2,13 +2,12 @@ default: &default
2
2
adapter : postgresql
3
3
encoding : unicode
4
4
database : <%= ENV['DB_NAME'] || "c2_#{Rails.env}" %>
5
- pool : 5
6
-
7
- development : *default
8
- test : *default
9
- production :
10
- << : *default
11
5
username : <%= ENV['DB_USERNAME'] %>
12
6
password : <%= ENV['DB_PASSWORD'] %>
13
7
host : <%= ENV['DB_HOST'] %>
14
8
port : <%= ENV['DB_PORT'] %>
9
+ pool : 5
10
+
11
+ development : *default
12
+ test : *default
13
+ production : *default
You can’t perform that action at this time.
0 commit comments