-
Notifications
You must be signed in to change notification settings - Fork 26
Mrsk #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kolosek
wants to merge
24
commits into
main
Choose a base branch
from
mrsk
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Mrsk #2
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
4ebc277
mrsk
nesha7 30a8d46
new ip
nesha7 3c42207
dockerfiles
nesha7 14a3858
make executable
nesha7 97772cb
on purpose
nesha7 1bc86d1
trigger
kolosek 79be6c1
secret_key_base
kolosek eeed21d
include master key
kolosek 336113c
creditentials
kolosek 265d40d
healthcheck
kolosek 35cc16b
changes
kolosek 9b72361
c
kolosek 8a5970d
ch
kolosek 715a443
a
kolosek 2beae86
a
kolosek 628ec0a
force
kolosek efe5738
force not
kolosek 891bded
port
kolosek 708e8ce
upd
kolosek 0ccfb72
a
kolosek de531a0
ss
kolosek 1cd0998
Update items_controller.rb
kolosek 2d7857a
Update items_controller.rb
kolosek c47a3ed
Update items_controller.rb
kolosek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| ruby-2.7.6 | ||
| ruby-3.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Make sure it matches the Ruby version in .ruby-version and Gemfile | ||
| ARG RUBY_VERSION=3.0.0 | ||
| FROM ruby:$RUBY_VERSION | ||
|
|
||
| # Install libvips for Active Storage preview support | ||
| RUN apt-get update -qq && \ | ||
| apt-get install -y build-essential libvips vim && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man | ||
|
|
||
| # Rails app lives here | ||
| WORKDIR /rails | ||
|
|
||
| # Set production environment | ||
| ENV RAILS_LOG_TO_STDOUT="1" \ | ||
| RAILS_SERVE_STATIC_FILES="true" \ | ||
| RAILS_ENV="production" \ | ||
| BUNDLE_WITHOUT="development" | ||
|
|
||
| # Install application gems | ||
| COPY Gemfile Gemfile.lock ./ | ||
| RUN bundle install | ||
|
|
||
| # Copy application code | ||
| COPY . . | ||
|
|
||
| # Precompile bootsnap code for faster boot times | ||
|
|
||
| RUN bundle exec bootsnap precompile --gemfile app/ lib/ | ||
| RUN bundle config set force_ruby_platform true | ||
| # Precompiling assets for production without requiring secret RAILS_MASTER_KEY | ||
| RUN bundle exec rails assets:precompile | ||
|
|
||
| # Entrypoint prepares the database. | ||
| ENTRYPOINT ["/rails/bin/docker-entrypoint"] | ||
|
|
||
| # Start the server by default, this can be overwritten at runtime | ||
| EXPOSE 3000 | ||
| CMD ["./bin/rails", "server"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,3 +23,4 @@ Things you may want to cover: | |
| * Deployment instructions | ||
|
|
||
| * ... | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| class HealthController < ApplicationController | ||
| rescue_from(Exception) { render head: 503 } | ||
|
|
||
| def show | ||
| render head: 200 | ||
| end | ||
| end | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| module HealthHelper | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| end | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| <h1>Health#show</h1> | ||
| <p>Find me in app/views/health/show.html.erb</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #!/bin/bash | ||
|
|
||
| # If running the rails server then create or migrate existing database | ||
| if [ "${*}" == "./bin/rails server" ]; then | ||
| ./bin/rails db:prepare | ||
| fi | ||
|
|
||
| exec "${@}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| qhV4QM5XHhfopSMHPQOnCbd6aOnQOF6+/kNB0arsN9G0B7PLlEwRHJRglfEsKZxvzzv0KEhJLtm2Ei6GYSmdx72hg6aCeNMKI8SrkpBLLQ7kdqj/05kTkSlYw1WeoWuIlxRXiOUywStOrL0QGNla/xRYsSpk1RS/+o6457Rd8yPUdWOC5ORjUhYWm5SgDii3vV7Z2Y9pOhtNsF/CZj5vu8wpfm/SI223gDryZ9ZE6X1DGDfBnJ1uVDsScqQlubz9ZRYmAXmqLySgDpIWE/jU4xBPKHZJ1Gh1ZKrX3icw1brgOLsgquYf9842sw3wP59upXrG7f82xXDhrU37+xvs1zvGkyJExGSi1n9d+lhc1ATQFqipb3CnU3mnH1L4Krr7iEQu/0Au6MTw5UONZ7wlOtRjqjkLHOILLjK5--+U1aMORLTomguj1a--FDN7kbBv3sr911kx6mQFSA== | ||
| Sfe68WvrD7utpNrlblSMy5Y3GZIhAlSjliVRMGqRcy5etWRIN5jh15KB2Bj/t+wu7qqdGTbms3ivhWQqE0ssJWpqA7vVAx57DrLLtqCIXYxQnNFd0JADhHZPeDRa2h2Cnj7qcwMzkTe+NdJZH0RHg4Vb76y6CaJmxJ3YXlitpfp0Z3BzdlPfv26dfsoH6ZfKQ68/QD+oRrm4cQnBKO+j+eMDSbqIgq+ib9gaYv2uCqenrEF69yt3DZaBQvjbAkd1JTKiyD5H0Y4t5CpQ92hQ/rTa4zym9GshfExOygHRDYvi68wIZifYc55gkV10R8KG8gvwGZ2MAzlceeRWGD7D9bwALX0QLQhF4ao5a7Qbwn9mTcCbo/JRyXTbk9YgsJoyfWz/kYnduwlK6EGlS5UfJneJRX+monmy7cQb--JwxEUFZ2PggAQa41--1p6beAXEHbxqKhHzu3FxDA== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| service: basicapp | ||
| image: kolosek/basicapp | ||
| servers: | ||
| - 5.161.63.224 | ||
| registry: | ||
| username: kolosek | ||
| password: | ||
| - MRSK_REGISTRY_PASSWORD | ||
| env: | ||
| secret: | ||
| - RAILS_MASTER_KEY | ||
| builder: | ||
| multiarch: false | ||
| traefik: | ||
| host_port: 81 | ||
| labels: | ||
| traefik.http.routers.basicapp.rule: Host(\'basic.kolosek.me\'') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| Rails.application.routes.draw do | ||
| get 'health/show' | ||
| resources :items | ||
| # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html | ||
|
|
||
| # Defines the root path route ("/") | ||
| # root "articles#index" | ||
| get '/up', to: 'health#show' | ||
| end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReekIrresponsibleModule has no descriptive commentsee on ruby.ci