A simple document management application.
https://docloader.herokuapp.com/
2.5.5
5.2
- Clone this repository.
- Run
docker-compose build
. - Run
docker-compose run web bundle install
. - Run
docker-compose run web rake db:create
. - Run
docker-compose run web rake db:migrate
. - Run
docker-compose up
. - Go to
localhost:3000
to view the application.
- Run
docker-compose down
.
To restart the application run docker-compose up
in the project directory.
If you make changes to the Gemfile or the Compose file to try out some different configurations, you need to rebuild. Some changes require only docker-compose up --build
, but a full rebuild requires a re-run of docker-compose run web bundle install
to sync changes in the Gemfile.lock to the host, followed by docker-compose up --build
.
- Run
docker-compose run web /bin/bash
- Run
docker-compose run web /bin/bash
- Then run
docker-composae run web rake test
- Todo: add Rspec to use
rspec spec/path_to_spec_file
- To create DB;
docker-compose run --rm web rake db:create
. - To migrate DB;
docker-compose run --rm web rake db:migrate
.
- Run,
heroku apps:create docloader
. - Run this to add postgresql addon on Heroku
heroku addons:create heroku-postgresql:hobby-dev
. - To create DB run,
heroku run --app docloader rake db:create
.
- https://docs.docker.com/compose/rails/
- https://docs.travis-ci.com/user/docker/
- https://docs.docker.com/registry/deploying/
- https://docs.travis-ci.com/user/environment-variables#encrypting-environment-variables
- https://edgeguides.rubyonrails.org/active_storage_overview.html
- https://www.engineyard.com/blog/active-storage
- https://tech.kartenmacherei.de/scaling-activestorage-21e962f708d7
- https://medium.com/@wintermeyer/authentication-from-scratch-with-rails-5-2-92d8676f6836
- https://gist.github.com/iscott/4618dc0c85acb3daa5c26641d8be8d0d
- https://blog.imadityang.xyz/simple-guide-implement-travis-codeclimate-rails-app/
- https://andycroll.com/ruby/use-simplecov/
- https://isotope11.com/blog/getting-minitest-plus-spinach-coverage-reports-to-work-properly-with-simplecov
Sylvance Kerandi.