Andrew Starr-Bochicchio
294b419da5
Display the port for an app when falling back to the ip address.
2014-12-17 21:20:18 -05:00
Michael Hobbs
56472bd08c
VHOST fallback
2014-12-16 23:01:32 -08:00
Michael Hobbs
e99e2201cb
mv default VHOST creation to core install
2014-12-16 20:25:44 -08:00
Jose Diaz-Gonzalez
5bf1ba7ed7
Merge pull request #783 from progrium/nginx-cleanup
...
New domains plugin and nginx extension
2014-12-16 17:15:30 -05:00
Michael Hobbs
59f047bb45
include SSL_VHOSTS in NOSSL_SERVER_NAME so we can redirect from http to https on the secure hostname as well
2014-12-16 12:15:10 -08:00
Michael Hobbs
1b208778f3
bugfixes
...
- don't match substrings in VHOSTS
- handle case where NOSSL_SERVER_NAME is \' \'
- rebuild nginx config on ssl import
- prevent cwd errors after we rm the temp dir
2014-12-15 18:10:14 -08:00
Michael Hobbs
a6cdae5abf
reset VHOST to default upon domains:clear
2014-12-15 18:04:00 -08:00
Michael Hobbs
50115d3640
print out urls with scheme
2014-12-15 18:02:57 -08:00
Michael Hobbs
78d3921a6f
don't break other nginx plugins like nginx-alt
2014-12-15 13:15:40 -08:00
Michael Hobbs
4e0670f1ac
rebuild nginx config on domain change
2014-12-12 17:53:30 -08:00
Jose Diaz-Gonzalez
b9b9d6303a
Add a dokku trace command to allow easy toggling of the DOKKU_TRACE option
2014-12-12 01:07:43 -05:00
Jose Diaz-Gonzalez
7d8ec62a86
Merge pull request #787 from progrium/build-env
...
Official user-env-compile plugin
2014-12-11 21:15:45 -05:00
Michael Hobbs
7c8feb9e0d
build-env todos
2014-12-11 14:56:25 -08:00
Michael Hobbs
498e250e2e
link to commit id and line in comment
2014-12-11 12:52:04 -08:00
Michael Hobbs
7d5e0ba5aa
create build env for both dokku and new style buildpacks
2014-12-11 12:05:55 -08:00
Andre Bossard
79788e5690
Please increase the server_names_hash_bucket_size
...
I use Dokku in a private environment with very long hostname.... 64 was always a lot to short.
2014-12-11 09:59:13 +01:00
Jose Diaz-Gonzalez
ae61ef3f1e
Add backup support to nginx.conf.template files
2014-12-11 02:40:20 -05:00
Jose Diaz-Gonzalez
1d45ca0cdd
Add backup export/import hooks for associated VHOST files
2014-12-11 02:38:08 -05:00
Jose Diaz-Gonzalez
01e7f1cdb6
Output *all* hosts on multiple lines
2014-12-11 02:34:08 -05:00
Jose Diaz-Gonzalez
0865ff3f79
Use updated VHOST file instead of URL file when outputting the current URL to an app
...
Note that this may include more than one URL to an app
2014-12-11 02:16:52 -05:00
Jose Diaz-Gonzalez
11b126a845
Do not overwrite URL file
2014-12-11 02:14:52 -05:00
Jose Diaz-Gonzalez
605ba27eeb
Use a one-liner for the "Configuring" echo statement
2014-12-11 02:12:46 -05:00
Jose Diaz-Gonzalez
8109c9c569
Delete the VHOST file, not the URL file, when NO_VHOST is set
...
The URL file is useful for understanding what port docker decided to host our app internally on.
2014-12-11 02:10:49 -05:00
Jose Diaz-Gonzalez
9111902542
Fix issue where VHOST was not properly being set
...
The URL file is being rewritten on every deploy by `dokku deploy` and thus that file was incorrect. Instead, we just reuse the old logic from the nginx-vhosts plugin to handle creation of the VHOST file
2014-12-11 02:09:54 -05:00
Jose Diaz-Gonzalez
4955f9c600
Fix test for file
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
976dc3009c
Use a normal conditional
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
0b4b2b29a8
Add missing env var
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
e84526490e
Move VHOST file creation to a single domains:setup command
...
This helps remove duplication and also ensures that all hosts have a proper setup after running `make copyfiles`
Note that this command is not exposed in help as it is not generally useful to developers
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
66171551d8
Add domains plugin as written in https://github.com/jtangelder/dokku-nginx-alt
...
This plugin conforms to the heroku api for setting and removing domains. Note that it does not yet update the URL file for a given application.
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
f23809e75f
Implement the ability to set multiple server names for a given application
...
Adding a hostname to the $APP/VHOST file will enable it as a virtualhost for the application.
In addition, any hostname set that matches an associated ssl certificate will also be set as an ssl host. Note that if a hostname does not have a matching SSL host, then it will result in an erroring application.
For the moment, running `dokku url` on an app may not correctly display the current hostnames for said app.
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
b967514c55
Allow overriding of the nginx.conf template via nginx.conf.template
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
a6c34ddd6f
Use a template to create an application's nginx.conf
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
8f0e794893
Remove extra dash
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
68a1d1af38
one-liner
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
eeff3d52eb
Combine calls to restart nginx into a single command
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
8aa196c660
Remove extra reload command
2014-12-11 01:36:44 -05:00
Jose Diaz-Gonzalez
d9d66c58ab
Fix reference to $APP
2014-12-08 22:16:05 -05:00
Jose Diaz-Gonzalez
129a5fd33d
Force install a default nginx.conf. Closes #799
2014-12-08 21:20:54 -05:00
Adem Gaygusuz
469d1e3f49
Fix crt/key check
2014-12-09 00:37:47 +00:00
Michael Merickel
ee5c35dd9d
do not output message when creating ENV file
...
This fixes a bug introduced when deploying apps where the
nginx-vhosts plugin runs ``dokku config:get $APP NO_VHOST``. The initial
run of this actually was creating the ``ENV`` file and dumping to
stdout the value "NO_VHOST=-----> Creating /home/dokku/foo/ENV". This
was obviously no good because nginx-vhosts was considering this to be a
value of true.
I've modified this to simply not return anything when the value does not
exist. A better update may be to output the messages to stderr instead
of stdout.
2014-11-25 15:43:36 -05:00
Michael Merickel
4ae8cf8180
fix search for apps if DOKKU_ROOT is a symlink
2014-11-25 11:56:05 -06:00
Michael Merickel
aef3a68d2b
fix app plugin that was always searching for empty app name
2014-11-25 11:55:25 -06:00
Jose Diaz-Gonzalez
6ddc7275dd
First pass at official user-env-compile plugin
...
- Uses ENV and APP/ENV files
- Supports old BUILD_ENV files (which are likely in wide-use)
- Allows user's to override globals with app-specific configuration
Closes #284
Closes #683
Closes #763
Refs #503
Refs #678
2014-11-25 11:24:58 -05:00
Jose Diaz-Gonzalez
7c2f21fd2a
Merge pull request #782 from progrium/simplified-config
...
Simplified config
2014-11-24 13:17:27 -05:00
Jonas Svatos
c706344a94
fix missing semicolon in nginx config
2014-11-24 13:22:50 +01:00
Jose Diaz-Gonzalez
20977fc2a2
Fix NO_VHOST check
...
It used to check if NO_VHOST is unset or set to the empty string
It now checks if NO_VHOST is set to a non-empty string
2014-11-24 02:16:21 -05:00
Jose Diaz-Gonzalez
407436b4cc
Exit 0 if there is no configuration
...
heroku config:get exits 0 in this case
2014-11-23 23:32:42 -05:00
Jose Diaz-Gonzalez
04dbe31919
Unify the way in which all error messages are specified
...
Other parts of dokku use one-liners where possible, so these parts should as well
2014-11-23 23:32:42 -05:00
Jose Diaz-Gonzalez
303bd77226
Simplify if statement
2014-11-23 23:32:42 -05:00
Jose Diaz-Gonzalez
c6e39c08f0
Simplify env var checking in config plugin
...
All checks are now done within the commands, and we only need to ensure the config file exists.
2014-11-23 23:32:42 -05:00