Change targets to vagrant-*

This commit is contained in:
Jose Diaz-Gonzalez
2014-10-06 18:31:17 -04:00
parent ab44c915a8
commit b9eed22e35
2 changed files with 7 additions and 7 deletions

View File

@@ -6,15 +6,15 @@ STACK_URL ?= https://github.com/progrium/buildstep.git
PREBUILT_STACK_URL ?= https://github.com/progrium/buildstep/releases/download/2014-03-08/2014-03-08_429d4a9deb.tar.gz
DOKKU_ROOT ?= /home/dokku
# If the first argument is "dokku"...
ifeq (dokku,$(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "dokku"
# If the first argument is "vagrant-dokku"...
ifeq (vagrant-dokku,$(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "vagrant-dokku"
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(RUN_ARGS):;@:)
endif
.PHONY: all install copyfiles version plugins dependencies sshcommand pluginhook docker aufs stack count acl-add dokku
.PHONY: all install copyfiles version plugins dependencies sshcommand pluginhook docker aufs stack count vagrant-acl-add vagrant-dokku
all:
# Type "make install" to install.
@@ -80,8 +80,8 @@ count:
@echo "Test lines:"
@find tests -type f | xargs cat | wc -l
acl-add:
vagrant-acl-add:
vagrant ssh -- sudo sshcommand acl-add dokku $(USER)
dokku:
vagrant-dokku:
vagrant ssh -- "sudo -H -u root bash -c 'dokku $(RUN_ARGS)'"

View File

@@ -118,7 +118,7 @@ sudo BUILD_STACK=true make install
- Add SSH key to Dokku using `sshcommand`:
```bash
cat ~/.ssh/id_rsa.pub | make acl-add
cat ~/.ssh/id_rsa.pub | make vagrant-acl-add
```
You are now ready to deploy an app or install plugins.