Skip to content

Instantly share code, notes, and snippets.

@pkarman
Last active November 21, 2018 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkarman/85b8ce9e9c6f513fa083a70ca41c7822 to your computer and use it in GitHub Desktop.
Save pkarman/85b8ce9e9c6f513fa083a70ca41c7822 to your computer and use it in GitHub Desktop.
ready:
h=`docker-compose ps | grep healthy`; while [ "$$h" == "" ]; do h=`docker-compose ps | grep healthy`; echo $$h; sleep 1; done
up:
docker-compose up -d
run: up ready
foreman start
test: clean
bundle exec rake
clean:
rm -f log/vacols.log
rm -f log/test.log
rm -f app/assets/javascripts/*webpack*
rm -rf tmp/capybara
vacols:
docker exec --tty -i VACOLS_DB-development bash
build: clean
bundle exec rake local:destroy local:build
lint:
bundle exec rake lint
jslint:
cd client && yarn run lint
security:
bundle exec rake security
check: test lint
logs:
docker-compose logs -f
db:
bundle exec rails dbconsole
migrate:
bundle exec rake db:migrate
fresh:
git fresh
install:
bundle check || bundle install
update: fresh install migrate
client-test:
cd client && yarn run build:test
one-test:
bundle exec rspec $$T
unsafe:
mv .git/hooks/pre-commit .git/hooks/pre-commit-linter
safe:
mv .git/hooks/pre-commit-linter .git/hooks/pre-commit
.PHONY: test run clean lint check logs db update one-test client-test security build ready
@pkarman
Copy link
Author

pkarman commented Sep 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment