Jose Diaz-Gonzalez
919ba7ed93
fix: correct issue with clearing global domains
...
Also update tests
2019-05-23 06:18:22 -04:00
Jose Diaz-Gonzalez
b921aed073
feat: allow users to specify wildcard domains
...
Closes #3075
2019-05-20 21:03:55 -07:00
Jose Diaz-Gonzalez
2315a127ea
Merge pull request #3540 from dokku/3529-better-default-vhost
...
Do not append the global domain for matching subdomains
2019-05-19 23:00:17 -07:00
Jose Diaz-Gonzalez
b429af8ff2
feat: do not append the global domain for matching subdomains
...
If the subdomain is url-like, assume it is a valid url and use it for the default domain name. This allows users to specify the default domain for an app even if that is a subdomain of a global vhost.
Closes #3529
2019-05-13 12:07:52 -04:00
Jose Diaz-Gonzalez
287f383f6c
feat: add ability to clear global domains
2019-05-13 12:00:26 -04:00
Jose Diaz-Gonzalez
13e3950f4a
Merge pull request #3498 from dokku/global-domains-report
...
Add ability to report domains globally
2019-04-17 01:32:45 -04:00
Jose Diaz-Gonzalez
887c0ebdd6
feat: add ability to report domains globally
...
The `domains` command previously had this functionality, but is deprecated, and thus we should provide an alternative method of presenting the information.
2019-04-16 21:58:56 -04:00
Jose Diaz-Gonzalez
65e82bcea1
fix: allow reporting domains when there are none specified
...
This previously bailed if the response was empty, which in this case is incorrect, as the response isn't based on whether the app is deployed or not.
2019-04-16 21:24:56 -04:00
Jose Diaz-Gonzalez
67ae374e60
lint: remove whitespaces before redirect
2019-02-02 13:49:24 -05:00
Jose Diaz-Gonzalez
2fc51bcf53
fix: wrap all output and status variables in quotes
...
This will ensure newlines are replaced when these variables are output for debugging tests
2018-12-27 09:02:39 -05:00
Jose Diaz-Gonzalez
3656651cb9
refactor: wrap all 'run dokku' calls in /bin/bash calls
2018-12-27 09:02:26 -05:00
Jose Diaz-Gonzalez
01b30e083f
fix: redirect stderr to /dev/null in tests
2017-03-15 09:29:47 -06:00
Ilya Semenov
6a9b3f6df2
Add domains:set and domains:set-global commands
2016-11-28 22:44:06 +07:00
Kazuhiro NISHIYAMA
ccc44b0c16
Fix bug when VHOST without newline
2016-11-14 22:21:41 +09:00
Ilya Semenov
45f05615c4
Clarify domains help, improve domains unit tests
2016-09-07 20:28:32 +07:00
Jose Diaz-Gonzalez
e0e9c3f72c
Merge pull request #2360 from xadh00m/fix_domain_validation
...
Allow hyphen in TLD
2016-08-26 14:17:17 -04:00
Michael Hobbs
e23e491967
fail rest of bats file on first test failure
2016-08-25 09:27:06 -07:00
Mirko Geissler
36ee71cb0a
Put hyphen at the end of group expression
2016-08-12 09:43:15 +02:00
Mirko Geissler
bdc3353a5c
Remove domains:set-global command
2016-07-05 09:49:26 +02:00
Mirko Geissler
43e3c51f3f
Add tests for domain:add-global and domains:remove-global
2016-07-05 09:45:17 +02:00
Michael Hobbs
98ef078d33
support domains that start with digits per RFC1123. closes #2257
2016-06-20 15:01:48 -07:00
Michael Hobbs
9a29cc59a8
reject invalid domains in domains:add. closes #2231
2016-06-10 13:10:11 -07:00
Jeroen van Baarsen
4f621916a7
Dont fail when adding a duplicated domain
...
Currently we exit when trying to add a duplicated domain, even if we give a list
of domain names. This behaviour is not as it suppose to work.
**Expected behaviour**
When adding a domain, and the domain already exists, just skip that domain, and
continue with the world. This is no problem since we are already in the state we
want to be in.
**New behaviour**
When you try to add a domain that is already added, we notify the user of this
by showing a log message: `Skipping: example.com already added to example app`,
and then we continue with the list of domain names.
Fixes #2165
2016-05-10 08:58:15 +02:00
Michael Hobbs
9842d7498b
nginx-vhosts rewrite
2016-02-18 18:38:54 -08:00
Michael Hobbs
76ad65b715
don't run app deploy tests and spread out unit tests to 4 containers. closes #1787
2015-12-21 10:18:16 -08:00