Skip to content

Commit 67f03ef

Browse files
committed
simplify setup
1 parent 6698078 commit 67f03ef

File tree

3 files changed

+8
-56
lines changed

3 files changed

+8
-56
lines changed

Gemfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ gem 'rails', '~> 4.2'
1010
# gem 'rails_12factor' # required for heroku applications
1111
gem 'thin'
1212

13-
# Databases
14-
gem 'pg'
15-
gem 'redis'
16-
gem 'redis-objects'
13+
gem 'sqlite3'
1714

1815
# Assets
1916
gem "reimagine2", git: "[email protected]:challengepost/reimagine.git", branch: "master"

Gemfile.lock

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ GEM
278278
nenv (~> 0.1)
279279
shellany (~> 0.0)
280280
orm_adapter (0.5.0)
281-
pg (0.18.2)
282281
pry (0.10.1)
283282
coderay (~> 1.1.0)
284283
method_source (~> 0.8.1)
@@ -328,8 +327,6 @@ GEM
328327
redis (3.2.1)
329328
redis-namespace (1.5.2)
330329
redis (~> 3.0, >= 3.0.4)
331-
redis-objects (1.2.0)
332-
redis (>= 3.0.2)
333330
rename (1.0.2)
334331
rails (>= 3.0.0)
335332
responders (2.1.0)
@@ -387,6 +384,7 @@ GEM
387384
actionpack (>= 3.0)
388385
activesupport (>= 3.0)
389386
sprockets (>= 2.8, < 4.0)
387+
sqlite3 (1.3.10)
390388
steak (2.0.0)
391389
capybara (>= 1.0.0)
392390
rspec-rails (>= 2.5.0)
@@ -435,15 +433,12 @@ DEPENDENCIES
435433
launchy
436434
mini_magick
437435
mixpanel
438-
pg
439436
pry
440437
pry-byebug
441438
pry-rails
442439
pry-remote
443440
rack-cors
444441
rails (~> 4.2)
445-
redis
446-
redis-objects
447442
reimagine2!
448443
rename
449444
rspec-rails
@@ -453,6 +448,7 @@ DEPENDENCIES
453448
simple_form
454449
sinatra
455450
smusher
451+
sqlite3
456452
steak
457453
thin
458454
timecop

README.md

Lines changed: 5 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -4,63 +4,26 @@ Todo Rails Sample App
44

55
## Dependencies
66

7-
By default, the dependencies and conventions are:
8-
97
- ruby 2.1.6
108
- bundler
11-
- postgresql
12-
- redis (for background jobs)
13-
- having "./bin" in your $PATH
14-
15-
You do not have to use them all but will need to update the project yourself.
169

17-
## Instructions
10+
## Setup
1811

19-
### Clone the project
12+
Clone the project
2013

2114
git clone [email protected]:challengepost/todo-rails.git your_project /path/to/new/project
2215
cd /path/to/new/project/
2316

24-
### Update dependencies
25-
26-
If you know right away that you won't need certain gems, update Gemfile
27-
28-
### Install dependencies
17+
Install dependencies
2918

3019
gem install bundler
3120
bundle install
3221
bundle install --binstubs
3322

34-
### Setup default database
23+
Setup the database
3524

3625
- `cp config/database-example.yml config/database.yml`
37-
- update database name and user
38-
- `createuser [new_user] --createdb` # if necessary
39-
- `rake db:create db:migrate`
40-
- `rake db:migrate`
41-
- `rake db:seed`
42-
43-
### Run tests faster
44-
45-
Spring will make running your tests faster, but to take advantage of it you need to run it independently (i.e. without `bundle exec`). Install spring gem the old fashioned way
46-
47-
gem install spring
48-
49-
### Update configurations
50-
51-
rake secret
52-
53-
And place result into config/initializers/secret_token.rb
54-
55-
**prerequisite:**
56-
57-
`brew install postgres` or [install and launch Postgres app](http://postgresapp.com/)
58-
59-
You will probably run into some errors, use these resources to fix them:
60-
61-
- [`initdb` fatal shared memory error](http://willbryant.net/software/mac_os_x/postgres_initdb_fatal_shared_memory_error_on_leopard)
62-
- [[...] Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?](http://stackoverflow.com/questions/6770649/repairing-postgresql-after-upgrading-to-osx-10-7-lion)
63-
- [[...] Setting SHMMAX etc values on MAC OS X 10.6 for PostgreSQL](http://stackoverflow.com/questions/2017004/setting-shmmax-etc-values-on-mac-os-x-10-6-for-postgresql)
26+
- `rake db:setup db:seed`
6427

6528
# Workflow
6629

@@ -73,7 +36,3 @@ You will probably run into some errors, use these resources to fix them:
7336
7. deploy to staging (rake deploy:staging)
7437
8. get your feature reviewed
7538
9. deploy to production
76-
77-
# Other info
78-
79-
TODO

0 commit comments

Comments
 (0)