File tree Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -595,7 +595,7 @@ public function devImportDb($sql_file) {
595595 $ this ->_exec ("$ this ->drush_cmd -y sql-drop " );
596596 $ this ->_exec ("$ this ->drush_cmd sqlq --file= $ sql_file " );
597597 $ this ->_exec ("$ this ->drush_cmd cr " );
598- $ this ->_exec ("$ this ->drush_cmd upwd admin --password= password " );
598+ $ this ->_exec ("$ this ->drush_cmd upwd admin password " );
599599 $ this ->_exec ("$ this ->drush_cmd updb --entity-updates -y " );
600600 $ this ->say ('Duration: ' . date_diff (new DateTime (), $ start )->format ('%im %Ss ' ));
601601 $ this ->say ('Database imported, admin user password is : password ' );
Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ services:
1212 ports :
1313 - " 80:8080"
1414 environment :
15- DATABASE_HOST : db
16- DATABASE_USER : user
17- DATABASE_PASSWORD : password
1815 HASH_SALT : random-hash
1916 MEMCACHE_ENABLED : 0
2017 MEMCACHE_HOST : memcached
@@ -53,8 +50,7 @@ services:
5350 MYSQL_USER : user
5451 MYSQL_PASSWORD : password
5552 MYSQL_ROOT_PASSWORD : super-secret-password
56- networks :
57- - default
53+ network_mode : service:web
5854
5955 mail :
6056 image : mailhog/mailhog
@@ -93,7 +89,7 @@ services:
9389 - default
9490
9591 selenium :
96- image : selenium/standalone-chrome:3.141.59-oxygen
92+ image : selenium/standalone-chrome:latest
9793 volumes :
9894 - /dev/shm:/dev/shm
9995 network_mode : service:web
Original file line number Diff line number Diff line change 33# `set +e` is used to continue on errors throughout this script.
44set -euo pipefail
55
6+ # Ensure script is NOT running inside a container - must be run from host.
7+ if [ -f /.dockerenv ]; then
8+ echo " Inception error - you can't run $0 within a docker container."
9+ exit
10+ fi
11+
612# Used as the prefix for docker networking, container naming and nginx hostname.
713export PROJECT=$( basename ${PWD} )
814# docker-compose stopped stripping chars from project name in 1.21.0.
@@ -43,12 +49,6 @@ error() {
4349 printf " \e[31;01m$1 \e[39;49;00m\n"
4450}
4551
46- # Ensure script is NOT running inside a container - must be run from host.
47- if [ -f /.dockerenv ]; then
48- error " Inception error - you can't run $0 within a docker container."
49- exit
50- fi
51-
5252# Command: ./dsh start
5353# Configures environment then brings up project using docker-compose.yml file.
5454dsh_start () {
You can’t perform that action at this time.
0 commit comments