Jessica Frazelle
969aed87c6
double brackets
2014-04-15 09:31:08 -04:00
Jessica Frazelle
2953ed2486
if dokku.conf has not been created, create it
2014-04-14 20:24:18 -04:00
rhy-jot
1f4c1b5871
Merge pull request #522 from wingrunr21/improve_ssl_support
...
Improve SSL support and implement SPDY
2014-04-09 15:59:52 -07:00
Assaf Arkin
2474844856
CHANGED use namespace dokku for docker 0.10 compatibility
2014-04-09 13:06:52 -07:00
Stafford Brunk
e2135a2c5f
Change cert folder name from ssl to tls
2014-04-08 06:48:50 -06:00
Stafford Brunk
22c25dc40a
Implement nginx spdy support
2014-04-03 07:20:18 -06:00
Stafford Brunk
dfac47cbe2
Allow symlinks for SSL cert detection in nginx-vhosts post-deploy
2014-04-03 07:15:21 -06:00
Stafford Brunk
bd5b2b210c
Factor common SSL settings out to the http block
2014-04-03 07:05:30 -06:00
Stafford Brunk
e33f5c94a5
Use listen 443 ssl instead of ssl on in vhost conf file
2014-04-03 07:04:35 -06:00
silasb
37f977a68d
If passing -t for tail, use logs --follow else just get last 100 lines
2014-02-25 21:23:01 -05:00
silasb
75286cdfa1
Using logs --follow instead of attaching to instance
2014-02-24 18:48:46 -05:00
aegypius
d208e53649
Suppress git advice related to detached HEAD
2014-01-07 14:30:29 +01:00
Jazz
7f0591fa1e
Submodules support
2013-12-28 16:10:13 +01:00
Michael Huynh
d9ed1e07eb
Fix edge case: app directory is created before first app push
...
When an app directory (i.e. `/home/dokku/myapp`) is created before the
app is pushed for the first time (which may occur if config files such
as `ENV` are added before the initial push), then the app directory will
not be initialized to a bare git repo nor will the pre-receive hook be
installed because `plugins/git/commands` assumes that if `$APP_PATH`
exists, then the directory must also be git initialized too. This fix
checks for `$APP_PATH/refs` instead.
2013-12-23 21:50:49 -05:00
rhy-jot
3ee694d3ea
Merge pull request #383 from colnpanic/features/notify-non-master-push
...
notify user when pushing to non-master branch
2013-12-22 14:09:08 -08:00
jay becker
7eae3b063c
notify user when pushing to non-master branch
2013-12-22 14:30:51 -06: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
jay becker
1050f350c0
do not exit when docker fails
2013-12-16 16:55:16 -06:00
rhy-jot
6718094237
Merge pull request #361 from plietar/backup-check
...
Backup check
2013-12-02 15:34:55 -08:00
Dyson Simmons
1e76aba0af
Pipe no op into docker-args plugin-hooks to avoid problems when running over ssh w/o a pty.
2013-12-01 00:14:01 +11:00
Paul Lietar
5c58a5e8e7
Add a backup-check to avoid reimporting apps.
2013-11-30 02:46:42 +00:00
Paul Lietar
a4451e82ac
Merge ssh keys rather than overwriting them.
2013-11-30 02:45:58 +00:00
Paul Lietar
4e737e739f
Add a backup-check used to validate the archive.
...
This allows plugins to refuse a backup, before the import process starts.
Users can force the import using -f.
2013-11-30 02:45:32 +00:00
Dyson Simmons
aaa4f0fade
Add $DOCKER_ARGS and docker-args pluginhook to dokku deploy and command run.
2013-11-29 15:52:26 +11:00
rhy-jot
c317dca558
Merge pull request #342 from plietar/no-container
...
Don't fail if CONTAINER is inexistant.
2013-11-27 13:18:31 -08:00
rhy-jot
9eff936676
Remove outdated sed. Fixes #346
...
Starting apps on daemon start has been handed by the upstart 'dokku-redeploy' script for a while. (Also, the format of /etc/init/docker.conf changed and rendered the sed useless.)
2013-11-27 12:50:22 -08:00
Lukas Schauer
95c9656fc8
nginx vhost ipv6 compatibility
...
IPv6 Compatibility (Nginx Default Site is IPv6 compatible, resulting in not-working vhosts when AAAA DNS entry is set)
2013-11-27 12:03:38 -08:00
Paul Lietar
10a8c75224
Add an empty help message to the nginx-vhosts plugin.
...
Not doing anything just destroys the help message coming from previous
plugins. Run cat to forward stdin into stdout.
2013-11-23 00:10:30 +00:00
Paul Lietar
8a9182c859
Don't fail if CONTAINER is inexistant.
2013-11-22 22:58:02 +00:00
Paul Lietar
7ed57b285c
Close stdin before running the backup-export hooks.
...
This avoids hanging when we're not in a pty.
2013-11-22 22:46:54 +00:00
Paul Lietar
e126da0db2
Don't explicitly specify streams to docker run.
...
Now that "docker run" always has an stdin, we don't need to explicitly
specify stdout and stderr.
2013-11-22 21:42:48 +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
rhy-jot
f4018db310
Use $DOKKU_ROOT instead of $HOME
2013-11-21 10:48:55 -08:00
Ryan Seys
ad9fe82bc7
Fix capitalization for consistency
2013-11-20 20:59:00 -05:00
Paul Lietar
252b1ed8b6
Add a version command.
...
The git tag/revision is saved when running "make install", and can be
displayed using "dokku version".
2013-11-21 00:02:02 +00:00
rhy-jot
e8037da726
Use globs, set nullglob, and remove stdout redirection for import
2013-11-20 15:40:50 -08:00
Paul Lietar
557d555858
Delete the /cache directory's contents from inside the container.
...
Fixes #322 .
Buildpacks write into /cache as root, which made the delete command unable
to delete it.
Its contents are now deleted using "docker run", and thus as root.
2013-11-20 20:42:15 +00:00
rhy-jot
ab978fab4e
Provide more feedback for backup import
2013-11-19 21:16:01 -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
f92e7a59d9
Force connection of stdin and stderr in the run command.
...
If stdin is closed, which is the case when pluginhook is called from an
interactive session, "docker run" does not connect stdin and stderr by default.
Fixes #323
2013-11-20 00:45:41 +00: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
rhy-jot
805c5a27c6
Don't overwrite $DOKKU_ROOT/{HOSTNAME,VHOST}
2013-11-18 11:50:28 -08:00
Paul Lietar
a06d27ab45
Use the FQDN to setup the HOSTNAME and VHOST files.
...
The HOSTNAME environment var only contains the first part of the domain
name. Use the fqdn to have it entirely.
2013-11-15 03:07:51 +00:00
Alexander
2219044114
Introduce DOKKU_ROOT and import now in git plugin
2013-11-14 23:51:35 +01:00
Alexander
682229baae
Specify current backup version at the top of the script
2013-11-14 21:52:49 +01:00
Alexander
8981b9e613
Introduce backup plugin to export/import settings
2013-11-14 21:52:49 +01:00
Paul Lietar
28c78300db
Improve the logs command.
...
Check for application's existence, and add an optional -t option, to
make it behave like "tail -f" or "heroku logs -t"
2013-10-31 10:50:58 +00:00
rhy-jot
3c1666076e
Silence nginx reloading
2013-10-30 17:17:53 -07: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