Skip to content

Instantly share code, notes, and snippets.

@pkarman
Last active November 21, 2018 16:53
Show Gist options
  • 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*
build: clean
bundle exec rake local:destroy local:build
lint:
bundle exec rake lint
security:
bundle exec rake security
check: test lint
logs:
docker-compose logs -f
db:
bundle exec rails dbconsole
update:
git fresh
bundle check || bundle install
bundle exec rake db:migrate
client-test:
cd client && yarn run build:test
one-test:
bundle exec rspec $$T
.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