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
Jose Diaz-Gonzalez
7b361e564f
Use 2 spaces for formatting bash
...
Also remove extra trailing newlines
2014-11-16 02:58:52 -05:00
Jose Diaz-Gonzalez
f13c1031c7
Ensure there is a newline after calling set -e
2014-11-16 02:54:54 -05:00
Jose Diaz-Gonzalez
bca8aa3923
Merge pull request #759 from progrium/apps-plugin
...
Create an `apps` core plugin.
2014-11-16 02:36:01 -05:00
Jose Diaz-Gonzalez
4b9433052f
Create an apps core plugin.
...
This creates the following commands:
- apps
- apps:create <app>
- apps:destroy <app>
It also:
- makes `delete` an alias for `apps:destroy`
- adds confirmation to `apps:destroy`
- allows a developer to remove apps that have been created via apps:create but have not been deployed
Refs #87
Refs #543
Refs #586
Closes #599
Refs #655
Refs #656
Refs #685
Closes #757
2014-11-16 02:30:39 -05:00
Jose Diaz-Gonzalez
913af9b641
Make ENV file readable only from dokku user. Closes #621
2014-11-16 00:26:12 -05:00
Jose Diaz-Gonzalez
b766654b4f
Merge pull request #359 from plietar/rm-plugins
...
Remove plugins before copying them again.
2014-11-15 23:34:42 -05:00
Jose Diaz-Gonzalez
af0005196a
Standardize the way in which we set variables
2014-11-15 23:32:30 -05:00
Jose Diaz-Gonzalez
0f31ff1f24
Add a set of spaces to prefix config variables when setting them
2014-11-15 22:11:55 -05:00
Ludovic Perrine
5dbc864060
Handle config values with spaces
2014-11-15 22:03:54 -05:00
Jose Diaz-Gonzalez
d4235304ee
Merge pull request #699 from tombell/suppress-git-archive-all-output
...
Actually suppress the output from `git_archive_all`
2014-11-15 20:23:57 -05:00
Vincent Fretin
977d00efb4
The app certificates directory was renamed to tls in e2135a2c5f
2014-11-11 16:13:35 +01:00
Stafford Brunk
e94b46cb0c
Add a dependencies hook for plugin dependency management
2014-10-16 01:19:38 -04:00
Cameron Martin
44cf7f09f9
Fixed variable name.
...
RESTART_APP was initialized as RESTART.
2014-10-16 00:41:55 -04:00
Ludovic Perrine
0ec9ecad08
Restart app only if config changed
2014-10-16 00:30:07 -04:00
Jose Diaz-Gonzalez
83feec8398
Merge pull request #698 from tombell/clean-up-help
...
Make `help` command output more consistent
2014-10-15 23:33:34 -04:00
Jose Diaz-Gonzalez
a67c2c927d
Fix issue where certain hosts will not have add-apt-repository installed due to missing packages
2014-10-04 18:39:31 -04:00
Jose Diaz-Gonzalez
2e5f88b285
Use -qq flag on apt-get to quiet installations of packages
2014-10-04 18:39:28 -04:00
Ludovic Perrine
42df908c65
Fixed key format check
2014-10-02 12:13:09 +02:00
Tom Bell
42c9d7aaa6
Actually suppress the output from the git commands
2014-09-30 21:08:23 +01:00
Tom Bell
d9952bcae8
Make help output more consistent
2014-09-30 19:48:06 +01:00