- This will be the XC Marketplace service where we will learn rails and best practices
We use a postgres db container for development. You'll need to run some database commands once the db container is running:
docker-compose up dbdocker-compose build webdocker-compose run --rm web rake db:createdocker-compose run --rm web rake db:migrate
finally you can run the application as:
docker-compose up web
docker-compose up should start both the db and the app on your localhost
docker-compose exec web bundle exec rspec <file name>will test a specific filedocker-compose exec web bundle exec rspecwill test all files- Adding feature tests:
- Follow existing convention, and add a tag to the example group like:
describe "visit root", :type => feature dowhich makes it a feature. rspecruns both features and normal specs
- Follow existing convention, and add a tag to the example group like:
- precompile the assets with
docker-compose exec web rails assets:precompile - use
heroku loginto login with heroku - use
heroku container:push web -a young-thicket-52723to push image to heroku container repository - use
heroku container:release web -a young-thicket-52723to create a new release using the image