Skip to content

Commit

Permalink
Merged deployment branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mahammad-mostafa authored Jan 15, 2024
2 parents 5a0607b + 856bff3 commit 69e6714
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ Authorization using `CanCanCan` gem.
Pagination using `kaminari` gem.
Optimized queries with `bullet` gem.

📌 **Live Demo:**
- Check the project live from [here](https://food-recipes-c54u.onrender.com)

📌 **Tech Stack:**
- Programming language is `Ruby`
- Database used is `PostgreSQL`
Expand Down
8 changes: 8 additions & 0 deletions bin/render-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# exit on error
set -o errexit

bundle install
./bin/rails assets:precompile
./bin/rails assets:clean
./bin/rails db:migrate
3 changes: 2 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# config.assets.css_compressor = :sass

# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
config.assets.compile = true

# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.asset_host = "http://assets.example.com"
Expand Down Expand Up @@ -86,6 +86,7 @@

# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
config.active_record.table_name_prefix = "recipe_"

# Enable DNS rebinding protection and other `Host` header attacks.
# config.hosts = [
Expand Down

0 comments on commit 69e6714

Please sign in to comment.