Michael Hobbs
b30db17def
use column to format help output
2015-07-28 09:31:56 -07:00
Michael Hobbs
710c6f4e88
don't run dokku again on --* args in config plugin
2015-07-07 12:31:57 -07:00
Michael Hobbs
a84397895a
initial pass at config plugin arguments refactor
2015-07-06 19:41:17 -07:00
Arthur Schreiber
0da389e8af
Further fixes for config values containing newlines.
2015-06-23 23:53:10 +02:00
Arthur Schreiber
182ae4a50a
Support config variables containing \n
2015-06-23 23:41:34 +02:00
Michael Hobbs
6cb770bf1c
create config set/unset without restart. closes #908
2015-03-17 09:49:19 -07:00
Michael Hobbs
fb8f08d280
remove quoting from dockerfile env. closes #1002
2015-02-24 11:56:54 -08:00
Michael Hobbs
7357df7c9d
first pass at dockerfile support
2015-02-07 17:56:01 -08:00
Michael Hobbs
9164740117
rename log functions with dokku_log_ prefix
2015-02-06 08:28:14 -08:00
Michael Hobbs
371ba99540
include echo functions that don't print when quiet arg is passed
2015-02-05 12:38:59 -08:00
Michael Hobbs
6ad65dd9b4
first stab at a common functions library. include argument parsing and a few definitions wired up. closes #932 . closes #945
2015-02-05 11:32:46 -08:00
Michael Hobbs
61e154899b
use ps:restart for config and domains plugins
2015-01-14 15:25:53 -08:00
Michael Hobbs
3706392e65
test with wercker
2014-12-21 14:51:40 -08: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
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
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
8bc3d372ec
Minor bash formatting changes
2014-11-23 16:42:21 -05:00
Jose Diaz-Gonzalez
cfc7c41e47
Add PLUGIN:help command to each plugin
2014-11-22 17:52:46 -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
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
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
Ludovic Perrine
42df908c65
Fixed key format check
2014-10-02 12:13:09 +02:00
Tom Bell
d9952bcae8
Make help output more consistent
2014-09-30 19:48:06 +01:00
Michael Huynh
28de3ecaa3
For #313 : Do not specify both $APP and $IMAGE for base commands.
...
As discussed in #313 , dokku base commands such as build, release, and
deploy require specifying both `$APP` and `$IMAGE` as arguments where
`IMAGE="app/$APP"`. Thus, the `$IMAGE` parameter is currently redudant.
This patch removes the need to specify `$IMAGE` for these base commands
and is backwards compatible. If, in the future, the base commands expect
and `$IMAGE` different than `app/$APP`, then the `$IMAGE` parameter will
be re-added for those specific commands.
2013-12-18 17:01:56 -05:00
Paul Lietar
8a9182c859
Don't fail if CONTAINER is inexistant.
2013-11-22 22:58:02 +00:00
Paul Lietar
455be29249
Fix commands, the easy way.
...
Don't use pluginhook to run the commands hook, just run all the scripts
in a loop.
2013-11-22 21:42:39 +00:00
Ryan Seys
ad9fe82bc7
Fix capitalization for consistency
2013-11-20 20:59:00 -05:00
rhy-jot
e8037da726
Use globs, set nullglob, and remove stdout redirection for import
2013-11-20 15:40:50 -08:00
rhy-jot
6d64edc16a
Update headers
2013-11-19 21:15:29 -08:00
rhy-jot
dae4e55f25
Merge pull request #265 from asm89/backup
...
Introduce `backup` plugin to export/import settings
2013-11-19 21:07:20 -08:00
Paul Lietar
83ce81fc51
Enable tracing in hooks when DOKKU_TRACE is set.
...
This makes it much easier to debug plugins.
Also source the 'dokkurc' file when starting dokku. This makes it easy
to define DOKKU_TRACE over ssh.
2013-11-18 20:59:48 +00:00
Alexander
2219044114
Introduce DOKKU_ROOT and import now in git plugin
2013-11-14 23:51:35 +01:00
Alexander
8981b9e613
Introduce backup plugin to export/import settings
2013-11-14 21:52:49 +01:00
Jeff Lindsay
df7507d1be
normalizing shebang and bash options. also added long-term fix for bootstrap instructions
2013-10-29 17:13:02 -05:00
Paul Lietar
b5c8dd7436
Use DOKKU_ROOT instead of HOME.
...
HOME is not consistent if dokku is ran e.g. as root (for setup).
The DOKKU_ROOT variable will also make it possible to have the repositories stored in an arbitrary location (works-ish right now)
2013-10-28 21:15:17 +00:00
Paul Lietar
27d4bc8c3c
Replace gitreceive by a git plugin.
...
This removes the need for two distinct users.
Git pushes and dokku commands are sent using the same user.
2013-10-28 21:15:17 +00:00
Michael Huynh
7e201e9eb0
Made commands in config plugin executable to use with pluginhook.
2013-10-22 18:25:21 -04:00
Jose Diaz-Gonzalez
a308ff6546
heroku-like configuration handling for dokku
...
refs #55
superscedes #188
2013-10-17 17:47:19 -04:00