-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.ahoy.yml
80 lines (67 loc) · 2 KB
/
.ahoy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
ahoyapi: v2
commands:
ps:
cmd: docker-compose ps "$@"
usage: List the running docker-compose containers.
stop:
cmd: docker-compose stop "$@"
usage: Stop the docker-compose containers.
down:
cmd: docker-compose down "$@"
usage: Stop and remove the docker-compose containers.
restart:
cmd: docker-compose restart "$@"
usage: Restart the docker-compose containers.
composer:
cmd: docker-compose run cli php -d memory_limit=-1 /usr/local/bin/composer "$@"
usage: Run composer commands in the cli service container.
drush:
cmd: docker-compose run cli drush --root=/var/www/html/web "$@"
usage: Run drush commands in the cli service container.
bash:
cmd: docker-compose run cli bash
usage: Start a shell in the container (like ssh without actual ssh).
sqlc:
cmd: "docker-compose run cli drush --root=/var/www/html/web sqlc"
usage: Connect to the default mysql database. Supports piping of data into the command.
up:
cmd: |
source .env
docker network create humpback_proxy &> /dev/null
ahoy docker proxy-up
docker-compose up -d
ahoy docker hostfile
URL=`ahoy docker url`
if [ ! -z "${CI}" ] ; then
echo "Started. You can access your site at $URL"
exit 0
fi
if type "xdg-open" &> /dev/null; then
xdg-open $URL
elif type "open" &> /dev/null; then
open $URL
else
echo "Started. You can access your site at $URL"
fi
usage: Start the docker-compose containers.
reset:
cmd: |
docker-compose down
docker-compose up -d
usage: Destroy and recreate the containers
docker:
usage: A series of docker commands for development
imports:
- .ahoy/docker.ahoy.yml
hide: false
site:
usage: A series of docker commands for this site
imports:
- .ahoy/site.ahoy.yml
hide: false
help:
usage: Print this help
cmd: ahoy --help
init:
cmd: echo "ahoy.yml file already exists."
hide: true