File tree 2 files changed +26
-1
lines changed
2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
10
10
11
11
For a steady stream of TILs, [ sign up for my newsletter] ( https://crafty-builder-6996.ck.page/e169c61186 ) .
12
12
13
- _ 1571 TILs and counting..._
13
+ _ 1572 TILs and counting..._
14
14
15
15
See some of the other learning resources I work on:
16
16
- [ Ruby Operator Lookup] ( https://www.visualmode.dev/ruby-operators )
@@ -206,6 +206,7 @@ See some of the other learning resources I work on:
206
206
- [ Reload The nginx Configuration] ( devops/reload-the-nginx-configuration.md )
207
207
- [ Resolve The Public IP Of A URL] ( devops/resolve-the-public-ip-of-a-url.md )
208
208
- [ Running Out Of inode Space] ( devops/running-out-of-inode-space.md )
209
+ - [ Set Up Domain For Hatchbox Rails App] ( devops/set-up-domain-for-hatchbox-rails-app.md )
209
210
- [ SSH Into A Docker Container] ( devops/ssh-into-a-docker-container.md )
210
211
- [ SSL Certificates Can Cover Multiple Domains] ( devops/ssl-certificates-can-cover-multiple-domains.md )
211
212
- [ Wipe A Heroku Postgres Database] ( devops/wipe-a-heroku-postgres-database.md )
Original file line number Diff line number Diff line change
1
+ # Set Up Domain For Hatchbox Rails App
2
+
3
+ When we deploy a Rails app with [ Hatchbox] ( https://hatchbox.io ) , we are given
4
+ an internal URL for publicly accessing our app. It is something like
5
+ ` https://123abc.hatchboxapp.com ` . That's useful as we are getting things up and
6
+ running, but eventually we want to point our own domain at the app.
7
+
8
+ The first step is to tell Hatchbox what domain we are going to use.
9
+
10
+ From our app's _ Domain & SSL_ page we can enter a domain into the _ Add A
11
+ Domain_ input. For instance, I have the
12
+ [ visualmode.dev] ( https://visualmode.dev ) domain and I want the
13
+ [ still.visualmode.dev] ( https://still.visualmode.dev ) subdomain pointing at my
14
+ Rails app. I submit the full name ` still.visualmode.dev ` and I get an _ A
15
+ Record_ ipv4 address (e.g. ` 23.12.234.82 ` ).
16
+
17
+ The second step is to configure a DNS record with our domain registrar.
18
+
19
+ From the DNS settings of our registrar (e.g. Cloudflare) we can add an _ A
20
+ Record_ where we specify the name (e.g. ` still ` ) and then include the ipv4
21
+ address provided by Hatchbox. We can save this and wait a minute for it to
22
+ propagate.
23
+
24
+ And soon enough we can visit our Rails app at the custom domain.
You can’t perform that action at this time.
0 commit comments