diff --git a/README.md b/README.md index 9f15e31..ed0968e 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,10 @@ - **Deployment**: Supports deployment at [Heroku](https://www.heroku.com/platform) and [Render](https://render.com) -## Getting Started ๐Ÿ’ป +## Getting Started ๐Ÿš€ -### Requirements +### System Requirements You will need the following installed to run the application. - Ruby [3.3.1](.ruby-version) @@ -98,6 +98,8 @@ Once you have cloned the repository and have docker installed - Run `docker-compose up` to start the application. Since the local code from your host machine is mounted in the docker container, any change made in the code will be directly reflected. You don't need to rebuild you container. +## Deployment + ## Testing ๐Ÿงช Running all tests ``` @@ -110,7 +112,7 @@ Running a single test ``` ## License ๐Ÿ”‘ -Shore is released under the MIT License. +Shore is released under the [MIT License](./LICENSE.txt). ## Contributing ๐Ÿค -PRs are welcome to repository +PRs are welcome diff --git a/bin/render-build.sh b/bin/render-build.sh new file mode 100755 index 0000000..c1a669b --- /dev/null +++ b/bin/render-build.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# exit on error +set -o errexit + +bundle install +bundle exec rake assets:precompile +bundle exec rake assets:clean + +bundle exec rails db:migrate +bundle exec rails db:seed \ No newline at end of file diff --git a/render.yaml b/render.yaml new file mode 100644 index 0000000..a5596a3 --- /dev/null +++ b/render.yaml @@ -0,0 +1,41 @@ +databases: + - name: database + databaseName: database + user: shore + plan: starter + +services: + - type: web + name: web + env: ruby + buildCommand: "./bin/render-build.sh" + startCommand: "bundle exec puma -C config/puma.rb" + envVars: + - key: DATABASE_URL + fromDatabase: + name: database + property: connectionString + - fromGroup: settings + - type: worker + name: worker + env: ruby + buildCommand: "bundle install && bundle exec rake assets:precompile && bundle exec rake assets:clean" + startCommand: "bundle exec rake solid_queue:start" + envVars: + - key: DATABASE_URL + fromDatabase: + name: database + property: connectionString + - fromGroup: settings + +envVarGroups: + - name: settings + envVars: + - key: FONTAWESOME_NPM_AUTH_TOKEN + sync: false + - key: POSTMARK_API_TOKEN + sync: false + - key: HIDE_THINGS + generateValue: true + - key: SECRET_KEY_BASE + generateValue: true \ No newline at end of file