You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: profiles/dkan/.ahoy/dkan.ahoy.yml
+18-15
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,14 @@ commands:
4
4
drupal-rebuild:
5
5
usage: 'Builds a drupal site in ./docroot. Requires database url.'
6
6
cmd: |
7
-
if [ "$AHOY_CMD_PROXY" != "DOCKER" ]; then
8
-
ARGS="{{args}}"
9
-
else
7
+
if [ "$AHOY_CMD_PROXY" = "DOCKER" ]; then
10
8
ARGS=`ahoy docker mysql-url`
11
9
fi
10
+
11
+
# If no mysql URL from docker, use passed in args.
12
+
if [ "$ARGS" = "" ];then
13
+
ARGS="{{args}}"
14
+
fi
12
15
if [[ "$ARGS" != mysql* ]]; then
13
16
echo "You need to specify the drupal db url to use in the form mysql://root:root@localhost/db as an argument."
14
17
exit 1
@@ -44,9 +47,11 @@ commands:
44
47
mkdir backups
45
48
fi
46
49
if [ -f backups/last_install.sql ] && ahoy confirm "An existing installation backup exists at backups/last_install.sql, do you want to use that instead of reinstalling from scratch?"; then
47
-
ahoy drush sql-drop -y
48
-
ahoy drush cc all
49
-
ahoy drush sql-cli < backups/last_install.sql
50
+
51
+
ahoy drush sql-drop -y && \
52
+
echo "... Removed tables, restoring DB"
53
+
ahoy dkan sqlc < backups/last_install.sql
54
+
50
55
echo "Installed dkan from backup"
51
56
else
52
57
if [ "$AHOY_CMD_PROXY" == "DOCKER" ]; then
@@ -193,15 +198,13 @@ commands:
193
198
import: dkan/.ahoy/theme.ahoy.yml
194
199
hide: true
195
200
201
+
# Moved to .ahoy.yml
196
202
uli:
197
-
usage: log into the
203
+
usage: Log in via drush
198
204
cmd: |
199
-
uli=$(ahoy drush uli {{args}} | sed 's/^http.*\/default\/\(.*$\)/\1/g')
200
-
url="$(ahoy docker url)/$uli"
201
-
os=$(uname)
205
+
ruby dkan/.ahoy/.scripts/dkan-uli.rb {{args}}
202
206
203
-
if [ "$os" = "Darwin" ]; then
204
-
open $url
205
-
else
206
-
echo $url
207
-
fi
207
+
server:
208
+
usage: Provided as an easy way to setup the php server during testing.
0 commit comments