This README would normally document whatever steps are necessary to get the application up and running.
-
Ruby version
- 2.5.1
-
System dependencies
- MySql 8.0.25
git clone [email protected]:a10003202/rails-import-challenge.git
cd rails-import-challenge
Note: If you use Docker Compose you must follow next steps:
- Build image with: docker-compose build
- Change database.yml host to db
- Start container with: docker-compose up
- Follow steps starting from Database creation prepending to the commands 'docker-compose run --rm webapp'. Example: docker-compose run --rm webapp rake db:create
ruby -v
The output should start with something like ruby 2.5.1
If not, install the right ruby version using rbenv (it could take a while):
rbenv install 2.5.1
bundle && yarn
rake db:create
rake db:migrate
rake db:seed
rake assets:precompile
Using Heroku CLI:
heroku git:remote -a rails-import-challenge
heroku git:remote --remote heroku-staging -a rails-import-challenge-staging
rails s
Open in browser http://localhost:3000/login if running the project locally or http://your-domain.com/login for production environments. You can login with the default admin user credentials:
email: [email protected]
password: admin
rails test
Push to Heroku staging remote:
git push heroku-staging
Go to the Heroku Dashboard and promote the app to production or use Heroku CLI:
heroku pipelines:promote -a rails-import-challenge-staging
Push to Heroku production remote:
git push heroku