Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elsbury13/docker-rails
https://github.com/elsbury13/docker-rails
Last synced: about 10 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/elsbury13/docker-rails
- Owner: elsbury13
- Created: 2024-09-06T12:18:30.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T16:45:34.000Z (2 months ago)
- Last Synced: 2024-09-06T19:57:26.077Z (2 months ago)
- Language: Ruby
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby on Rails Base App & Docker
## Prepare environment, for dev version you can use the example environment:
`cp env-example .env`## Start the server:
`docker compose up --build`## Testing It Out
Head [here](http://localhost:8020)## Update Gems
`docker compose run baseapp bundle install --gemfile /opt/app/Gemfile`## Install Gem (rename GEM_NAME)
`gem install GEM_NAME`### If initialisation of the database is needed, then run the following commands to initialise the database:
`docker compose run drkiq rake db:reset`
`docker compose run drkiq rake db:migrate`### Once our database is initialized, run the following:
`docker compose up`