bootstrap task
This commit is contained in:
parent
e7dfa262df
commit
47063bafc3
|
@ -17,7 +17,12 @@ Installs a bunch of scripts into the `scripts` directory of your project:
|
||||||
* `gemfile` which switches between `Gemfile.erb` environments
|
* `gemfile` which switches between `Gemfile.erb` environments
|
||||||
* `install-git-hooks` which will do just what it says
|
* `install-git-hooks` which will do just what it says
|
||||||
* `hooks/pre-commit`, one of the hooks the prior script installs
|
* `hooks/pre-commit`, one of the hooks the prior script installs
|
||||||
* `initialize-environment`, which bootstraps your locak environment so you can get up and running
|
* `initialize-environment`, which bootstraps your local environment so you can get up and running
|
||||||
|
|
||||||
|
## initialize-environment
|
||||||
|
|
||||||
|
It will also try to run `rake bootstrap`, so add a `:bootstrap` task for things that should happen when you start going
|
||||||
|
(make databases, other stuff, etc, whatever).
|
||||||
|
|
||||||
## Gemfile.erb?!
|
## Gemfile.erb?!
|
||||||
|
|
||||||
|
|
|
@ -22,5 +22,8 @@ end
|
||||||
puts "Installing git hooks"
|
puts "Installing git hooks"
|
||||||
system %{script/install-git-hooks}
|
system %{script/install-git-hooks}
|
||||||
|
|
||||||
|
puts "Trying to run rake bootstrap..."
|
||||||
|
system %{rake bootstrap}
|
||||||
|
|
||||||
puts "Done!"
|
puts "Done!"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue