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
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
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
Jose Diaz-Gonzalez
12194e2cc8
Add proper error handling to each config command
2014-11-23 23:32:42 -05:00
Jose Diaz-Gonzalez
a3b3a6a12a
Unify missing app error messages
2014-11-23 23:32:42 -05:00
Jose Diaz-Gonzalez
4fa567dbe3
Merge pull request #780 from progrium/778-better-error-message
...
Output error message when a command is not found. Closes #778
2014-11-23 21:05:08 -05:00
Jose Diaz-Gonzalez
463f725872
Use git-* as a pluginhook prefix
2014-11-23 21:02:40 -05:00
Jose Diaz-Gonzalez
aa1c7f6fa4
Move git-upload-pack command to git plugin
...
Also use the same APP escaping as used for other git commands.
2014-11-23 20:47:15 -05:00
Will Boyce
ad497191df
Add git pull support
2014-11-23 20:39:57 -05:00
Jose Diaz-Gonzalez
d307a5b8ec
Output error message when a command is not found. Closes #778
...
Plugins with commands will need to implement a catch-all command that exits with the `DOKKU_NOT_IMPLEMENTED_EXIT`` code (10). This signals to dokku that a given plugin has indeed not executed anything for a plugin (which may not always be the case).
Using plugins that do not implement this pattern will result in those plugins silencing the error message.
2014-11-23 18:09:11 -05:00
Jose Diaz-Gonzalez
1e5a904747
Merge pull request #779 from progrium/minor-formatting
...
Minor bash formatting changes
2014-11-23 16:49:21 -05:00
Jose Diaz-Gonzalez
8bc3d372ec
Minor bash formatting changes
2014-11-23 16:42:21 -05:00
Thomas Boerger
14b1743c2a
Added openSUSE support
...
I have done the first steps to get dokku running for other distros like
openSUSE. I have simply replaced the important places within the core
plugins with a check for DOKKU_DISTRO that gets exported by dokku
itself. It just replaces the apt-get and service start/restart/reload
functionality with the openSUSE counterparts.
2014-11-23 11:37:58 +01:00
Jose Diaz-Gonzalez
842ae10b74
Merge pull request #775 from progrium/plugin-help
...
Add PLUGIN:help command to each plugin
2014-11-22 17:58:24 -05:00
Jose Diaz-Gonzalez
cfc7c41e47
Add PLUGIN:help command to each plugin
2014-11-22 17:52:46 -05:00
Jose Diaz-Gonzalez
4754f241f2
Add the ability to customize an app's hostname using the nginx-hostname pluginhook
...
Closes #254
2014-11-22 17:18:33 -05:00
Jose Diaz-Gonzalez
69f360864f
Disable nginx vhosts via dokku config:set myapp NO_VHOST=1. Closes #485
2014-11-22 16:42:55 -05:00
Jose Diaz-Gonzalez
19609f7078
Import ssl certificates
...
Also ensures output is stored in proper tls directory
Closes #518
2014-11-22 16:19:06 -05:00
Jose Diaz-Gonzalez
bf4876107d
Sort output of apps command
2014-11-16 19:14:51 -05:00
Jose Diaz-Gonzalez
d36249f51a
Ignore tls directory when listing out apps
2014-11-16 13:08:00 -05:00
Jose Diaz-Gonzalez
b68a8da2ce
Do not allow users to delete the tls directory
2014-11-16 13:00:07 -05:00
Fredrik Wollsén
580f89e63b
Plugin nginx-vhosts includes files in folder nginx.conf.d
2014-11-16 13:14:24 +02:00
Jose Diaz-Gonzalez
44201a66d9
Add set -eo statement to nginx-vhosts/dependencies
2014-11-16 02:59:07 -05:00