Skip to content

Commit 4882e40

Browse files
authored
Feature/configure default route (#9)
* setup basic fly deploy * trigger deploy and push to stage * align naming * change logos * add new logo * set default route * fix test
1 parent c3e3a88 commit 4882e40

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@
4242
!/.env
4343

4444
!/config/credentials/development.key
45+
.DS_Store

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
get "up" => "rails/health#show", :as => :rails_health_check
55

66
# resources :homepage, only: [:index]
7-
root "homepage#index"
7+
root to: redirect('/hacker/login')
88
get "/about", to: "homepage#about"
99
get "/contact", to: "homepage#contact"
1010

fly.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ console_command = '/rails/bin/rails console'
1010
[build]
1111

1212
[http_service]
13-
1413
internal_port = 3000
1514
force_https = true
1615
auto_stop_machines = false

test/controllers/homepage_controller_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
class HomepageControllerTest < ActionDispatch::IntegrationTest
44
test "should get index" do
55
get root_path
6-
assert_response :success
6+
assert_redirected_to '/hacker/login'
77
end
88
end

0 commit comments

Comments
 (0)