Roots Discourse

Deploy to Digital Ocean droplet with no Domain?

(Very) late yesterday after a surge of inspiration I spun up a local Trellis install with the intention of showing a potential client a site concept. All perfect. Once it was done, I then made a digital ocean droplet and went to provision/deploy to it. At this point I realised that I have no domain name for this project to point to. I don’t really want to purchase one just for this purpose.

Is there a way to use just the IP address of the droplet? If so, what would be the site hosts settings in my production wordpress_sites.yml file?

I haven’t tried IP only recently, so I don’t remember if it works. You could try:

    site_hosts:
      - canonical: 12.34.56.78

or perhaps

    site_hosts:
      - canonical: example.com
        redirects:
          -  www.example.com
      - canonical: 12.34.56.78

You’ll probably need to have ssl enabled: false.
Then reprovision (server.yml).

See also:

2 Likes