Check it out live on Heroku: https://spacexflights.herokuapp.com/
Read the original app specification here: ASSIGNMENT.md
```shell script git clone https://github.com/patrickclery/amazon-asin.git
2. From the command-line, cd into the directory:
```shell script
cd spacex
If you are using rvm_autoupdate_flag=1
in your ~/.rvmrc
, this will automatically install Ruby 2.6.5. Otherwise, run it manually:
```shell script rvm install
_Note: Using RVM is optional, just make sure you have Ruby 2.6.5 available._
3. Run the setup script. This does several things:
- Installs bundler (if necessary)
- Installs the required ruby gems
- Prepares your database
- Seeds your database
```shell script
bin/setup
shell script
docker-compose --env-file=.env up
Note: .env is generated by bin/setup
but you can create one using the sample .env.sample
Fork the repo.
Run the setup script.
shell script
bin/setup
This does several things:
Open the app in your browser by navigating to http://localhost:3000/
Run this command to build and deploy the app:
shell script
docker-compose --env-file=.env up
Note: .env is generated by bin/setup
but you can create one using the sample .env.sample
Be sure that your Docker container publishes port 3000 (manually required).
Install heroku CLI on MacOS:
shell script
brew tap heroku/brew && brew install heroku
Deploy the app on Heroku (this requires a heroku.com account.) You will want to enable “Automatic Deploys” for your master branch.
shell script
heroku git:remote -a your-heroku-subdomain-goes-here
heroku stack:set container
git push heroku master
The app should be up & running on your Heroku subdomain. If not, you can debug any errors by checking the build long (under the “Activity” tab on Heroku), or tailing the logs:
shell script
heroku logs --tail