[](Link to CI badge) [](Link to CodeClimate GPA badge) [](Link to CodeClimate Test coverage badge)
You can modify the pre-push.sh script to run different scripts before you git push
(e.g Rspec, Linters). Then you need to run the following:
> chmod +x script/pre-push.sh
> ln -s script/pre-push.sh .git/hooks/pre-push
You can skip the hook by adding --no-verify
to your git push
.
- Download and install Rbenv.
- Download and install Ruby-Build.
- Install the appropriate Ruby version by running
rbenv install [version]
whereversion
is the one located in .ruby-version
-
Clone the repository.
-
Install Bundler.
-
Install all the gems included in the project.
> git clone https://github.com/Wolox/rails-bootstrap.git > gem install bundler > rbenv rehash > bundle -j 12
Run in terminal:
> sudo -u postgres psql
> CREATE ROLE "rails-bootstrap" LOGIN CREATEDB PASSWORD 'rails-bootstrap';
Log out from postgres and run:
> bundle exec rake db:create db:migrate
Your server is ready to run. Happy coding!
OSX:
Install boot2docker and run:
> $(boot2docker shellinit)
> boot2docker init
> boot2docker up
Install Docker Compose and then run:
> git clone https://github.com/Wolox/rails-bootstrap.git
> docker-compose up
OSX:
Get the IP by running boot2docker ip
and enter port 3000
in the browser. To connect to the database read: https://coderwall.com/p/qsr3yq/postgresql-with-docker-on-os-x
When the server starts, run the following command in a different console to setup the database:
> docker-compose run web rake db:create db:seed
To stop the server run the following command in a different console:
> docker-compose stop
OSX
: Just press CTRL+C
To see the running process, run the following command in a different console:
> docker-compose ps
New dependencies should be added to Dockerfile and docker-compose.yml and then run:
> docker-compose build
No deploy configuration yet.
Rollbar
is used for exception errors report. To complete this configuration setup the following environment variables in your server
ROLLBAR_ACCESS_TOKEN
with the credentials located in the rollbar application.
Add your code climate token to .travis.yml or docker-compose.yml
For the staging environment label to work, set the TRELLO_URL
environment variable.
Just add a the meta
element to your view.
For example
= meta title: "My Title", description: "My description", keywords: %w(keyword1 keyword2)
You can read more about it here
Set the following variables in your server.
PGHERO_USERNAME=username
PGHERO_PASSWORD=password
Set in your server the `PGHERO
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Run rspec tests (
bundle exec rspec spec -fd
) - Run scss lint (
bundle exec scss-lint app/assets/stylesheets/
) - Run rubocop lint (
bundle exec rubocop app spec -R
) - Push your branch (
git push origin my-new-feature
) - Create a new Pull Request
This project is maintained by Esteban Guido Pintos and it was written by Wolox.