Skip to content

Commit 851c78d

Browse files
committed
Merge branch 'master' into develop
2 parents 8b96616 + c2d1f5c commit 851c78d

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,16 @@ We have a [Code of Conduct](http://hanamirb.org/community/#code-of-conduct) to h
7676
In general, we expect **you** to be **nice** with other people.
7777
Our hope is for a great software and a great Community.
7878

79-
## Contributing
79+
## Contributing [![Open Source Helpers](https://www.codetriage.com/hanami/hanami/badges/users.svg)](https://www.codetriage.com/hanami/hanami)
8080

8181
1. Fork it ( https://github.com/hanami/hanami/fork )
8282
2. Create your feature branch (`git checkout -b my-new-feature`)
8383
3. Commit your changes (`git commit -am 'Add some feature'`)
8484
4. Push to the branch (`git push origin my-new-feature`)
8585
5. Create a new Pull Request
8686

87+
In addition to contributing code, you can help to triage issues. This can include reproducing bug reports, or asking for vital information such as version numbers or reproduction instructions. If you would like to start triaging issues, one easy way to get started is to [subscribe to hanami on CodeTriage](https://www.codetriage.com/hanami/hanami).
88+
8789
### How To Use Hanami HEAD
8890

8991
If you want to test Hanami's HEAD to try a new feature or to test a bug fix, here's how to do:

script/try.sh

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
5+
check_preconditions() {
6+
if [ -z "$(command -v ruby)" ]; then
7+
echo "Ruby not found. Please install it: https://www.ruby-lang.org/en/documentation/installation/"
8+
exit 1
9+
fi
10+
11+
if [ -z "$(command -v bundler)" ]; then
12+
echo "Bundler not found. Please install it: gem install bundler"
13+
exit 1
14+
fi
15+
16+
if [ -z "$(command -v git)" ]; then
17+
echo "Git not found. Please install it: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git"
18+
exit 1
19+
fi
20+
21+
if [ -z "$(command -v heroku)" ]; then
22+
echo "Heroku CLI not found. Please install it: https://devcenter.heroku.com/articles/heroku-cli"
23+
exit 1
24+
fi
25+
}
26+
27+
install_hanami() {
28+
gem install hanami
29+
}
30+
31+
generate_project() {
32+
hanami new bookshelf --database=postgresql
33+
cd bookshelf && bundle
34+
git add . && git commit -m "Initial commit"
35+
}
36+
37+
deploy() {
38+
heroku apps:create
39+
heroku config:add SERVE_STATIC_ASSETS=true
40+
41+
git push heroku master
42+
43+
heroku run bundle exec hanami db migrate
44+
45+
heroku open
46+
}
47+
48+
main() {
49+
check_preconditions &&
50+
install_hanami &&
51+
generate_project &&
52+
deploy
53+
}
54+
55+
main
56+
57+
58+

0 commit comments

Comments
 (0)