Closed gunar closed 2 years ago
You could probably use the null
builder and null
scheduler to make a dummy app that only does redirection.
Thanks but that didn't seem to work. I'm still getting the default "Welcome to nginx" screen. Maybe I could use the nginx builder instead but I was hoping I didn't have to.
Can you show what commands you ran and the output so I can see what its failing on?
Sure, here's an asciinema cast of me setting up dokku.gunar.uk
-> google.com
.
I've left that redirection open so you can see the results:
Thanks for looking into this.
You can probably get away with this by doing something similar to what I do for dokku pro:
# create the app
dokku apps:create test
# set the builder to the null builder, which does nothing
dokku builder:set test selected null
# set the scheduler to the null scheduler, which does nothing
dokku scheduler:set test selected null
# set the static-web-listener network property to something that won't point to anything locally
dokku network:set test static-web-listener 127.0.0.1:65535
# set the port map as desired for the port specified in your static-web-listener
dokku proxy:ports-set test http:80:65535
# set the domains desired
dokku domains:set test test.dokku.me
# build the site config
dokku proxy:build-config test
Hope that helps.
Hi, can this plugin be used to create a simple redirection even when there are no deployments for the app? I couldn't get it to work. It seems like without a deployment the
nginx.conf
file is not even created. Just wondering of there's an easier way to do it. Thank you.