File tree Expand file tree Collapse file tree 2 files changed +40
-10
lines changed Expand file tree Collapse file tree 2 files changed +40
-10
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- # Set up Ruby dependencies and the local SQLite database.
4
- bundle check 2>&1 > /dev/null || bundle install --binstubs --path vendor/gems
5
- cp config/database.yml.example config/database.yml
6
- bundle exec rake db:migrate
3
+ # script/bootstrap: Resolve all dependencies that the application requires to
4
+ # run.
5
+
6
+ set -e
7
+
8
+ cd " $( dirname " $0 " ) /.."
9
+
10
+ # Install all of our gems if we need to
11
+ bundle check 2>&1 || {
12
+ echo " ==> Installing gem dependencies..."
13
+ bundle install --without production
14
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # script/setup: Set up application for the first time after cloning, or set it
4
+ # back to the initial first unused state.
5
+
6
+ set -e
7
+
8
+ cd " $( dirname " $0 " ) /.."
9
+
1
10
script/bootstrap
2
11
3
- export GIT_REPO=../git/.git
12
+ echo " ==> Setting up DB..."
13
+ bin/rake db:create db:reset
14
+
15
+ echo " ==> Building Git Docs..."
16
+ if ! [ -d " ../git" ]; then
17
+ git clone git://github.com/git/git.git ../git
18
+ fi
19
+
20
+ bin/rake local_index
4
21
5
- # Build git docs
6
- git clone git://github.com/git/git.git ../git
7
- bundle exec rake local_index
22
+ echo " ==> Fetching downloads..."
23
+ bin/rake downloads
8
24
9
- # Fetch downloads
10
- rake downloads
25
+ if [ -z " $RAILS_ENV " ] && [ -z " $RACK_ENV " ]; then
26
+ # Only things for a development environment will run inside here
27
+ # Do things that need to be done to the application to set up for the first
28
+ # time. Or things needed to be run to to reset the application back to first
29
+ # use experience. These things are scoped to the application's domain.
30
+ true
31
+ fi
11
32
33
+ echo " ==> App is now ready to go!"
You can’t perform that action at this time.
0 commit comments