Skip to content

Commit

Permalink
Merge pull request #11 from Zilola-Nazarova/deployment
Browse files Browse the repository at this point in the history
Deployment
  • Loading branch information
Zilola-Nazarova authored Nov 22, 2023
2 parents 124da60 + 9d36964 commit 151aa99
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 15 deletions.
14 changes: 4 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ GEM
ruby2_keywords
erubi (1.12.0)
ffi (1.16.3)
font-awesome-rails (4.7.0.8)
railties (>= 3.2, < 8.0)
font-awesome-sass (6.4.2)
sassc (~> 2.0)
globalid (1.2.1)
activesupport (>= 6.1)
i18n (1.14.1)
Expand All @@ -137,7 +133,7 @@ GEM
activesupport (>= 3.0)
nokogiri (>= 1.6)
io-console (0.6.0)
irb (1.9.0)
irb (1.9.1)
rdoc
reline (>= 0.3.8)
jbuilder (2.11.5)
Expand All @@ -160,7 +156,7 @@ GEM
minitest (5.20.0)
msgpack (1.7.2)
mutex_m (0.2.0)
net-imap (0.4.5)
net-imap (0.4.6)
date
net-protocol
net-pop (0.1.2)
Expand All @@ -169,7 +165,7 @@ GEM
timeout
net-smtp (0.4.0)
net-protocol
nio4r (2.6.0)
nio4r (2.6.1)
nokogiri (1.15.5-x86_64-linux)
racc (~> 1.4)
orm_adapter (0.5.0)
Expand Down Expand Up @@ -239,7 +235,7 @@ GEM
rspec-mocks (3.12.6)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-rails (6.0.3)
rspec-rails (6.1.0)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
Expand Down Expand Up @@ -328,8 +324,6 @@ DEPENDENCIES
database_cleaner
debug
devise
font-awesome-rails
font-awesome-sass (~> 6.4.2)
importmap-rails
inline_svg
jbuilder
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The **SmartPocket** keeps track of all your expences associated with catogories.

## 🚀 Live Demo <a name="live-demo"></a>

- The Live Demo is available [here]()
- The Live Demo is available [here](https://smart-pocket-app.onrender.com/)

<p align="right">(<a href="#readme-top">back to top</a>)</p>

Expand Down Expand Up @@ -180,6 +180,8 @@ If you like this project just star it!

## 🙏 Acknowledgments <a name="acknowledgements"></a>

Original design idea by <a target="_blank" href="https://www.behance.net/gregoirevella">Gregoire Vella</a>

I would like to thank the Microverse program for the knowledge and skills I have acquired in Modules 1-5.

I am grateful to all previous project reviewers for their advice. Thanks to them I could build this app.
Expand Down
7 changes: 7 additions & 0 deletions bin/render-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# exit on error
set -o errexit

bundle install
bundle exec rake assets:precompile
bundle exec rake assets:clean
bundle exec rake db:migrate
4 changes: 1 addition & 3 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,4 @@ test:
#
production:
<<: *default
database: budget_app_production
username: budget_app
password: <%= ENV["BUDGET_APP_DATABASE_PASSWORD"] %>
url: <%= ENV['DATABASE_URL'] %>
15 changes: 14 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# config.require_master_key = true

# Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
# config.public_file_server.enabled = false
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? || ENV['RENDER'].present?

# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
Expand Down Expand Up @@ -94,4 +94,17 @@
# ]
# Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }

config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_url_options = { :host => 'smart-pocket-app.onrender.com' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: 'smtp.gmail.com',
port: 587,
domain: 'gmail.com',
user_name: '[email protected]',
password: 'aouuaybaovtchnus',
authentication: 'plain',
enable_starttls_auto: true
}
end
3 changes: 3 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@

# Allow puma to be restarted by `bin/rails restart` command.
plugin :tmp_restart

workers ENV.fetch("WEB_CONCURRENCY") { 4 }
preload_app!

0 comments on commit 151aa99

Please sign in to comment.