Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@
!/.env

!/config/credentials/development.key
.DS_Store
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
get "up" => "rails/health#show", :as => :rails_health_check

# resources :homepage, only: [:index]
root "homepage#index"
root to: redirect('/hacker/login')
get "/about", to: "homepage#about"
get "/contact", to: "homepage#contact"

Expand Down
1 change: 0 additions & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ console_command = '/rails/bin/rails console'
[build]

[http_service]

internal_port = 3000
force_https = true
auto_stop_machines = false
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/homepage_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
class HomepageControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get root_path
assert_response :success
assert_redirected_to '/hacker/login'
end
end