* renaming xdebug scripts for non-conflicts name with user defined scripts in home directory starts with s and q
+ tail db general log bash helper * correct path to xdebug2 config for previous php 74 version - remove unnecessary laradock example crontab because this script moved crontab-example dir * improve (un)create symlinks script logic * use only newly composer auth path
This commit is contained in:
10
bash/tail-db-general-log.sh
Normal file
10
bash/tail-db-general-log.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
|
||||
|
||||
GENERAL_LOG_FILE_PATH="${DIR}/log/mariadb/mariadb.log"
|
||||
|
||||
sudo truncate -s 0 $GENERAL_LOG_FILE_PATH
|
||||
|
||||
clear
|
||||
|
||||
sudo tail -f $GENERAL_LOG_FILE_PATH
|
@ -1,8 +1,10 @@
|
||||
#!/bin/bash
|
||||
DIR="$(realpath $(dirname "$(readlink -f "$0")"))"
|
||||
|
||||
ln -s ${DIR}/bash/start-xdebug.sh ${HOME}/
|
||||
ln -s ${DIR}/bash/quit-xdebug.sh ${HOME}/
|
||||
ln -s ${DIR}/bash/restart-nginx.sh ${HOME}/
|
||||
ln -s ${DIR}/bash/mysql.sh ${HOME}/
|
||||
ln -s ${DIR}/bash/enter-to-workspace.sh ${HOME}/
|
||||
BASH_SCRIPTS_DIR="${DIR}/bash"
|
||||
|
||||
BASH_SCRIPTS=(ls $BASH_SCRIPTS_DIR)
|
||||
|
||||
for FILENAME in "${BASH_SCRIPTS[@]}"; do
|
||||
ln -s ${BASH_SCRIPTS_DIR}/${FILENAME} ${HOME}/
|
||||
done
|
@ -53,7 +53,7 @@ services:
|
||||
secrets:
|
||||
- user_ssh_key
|
||||
- user_known_hosts
|
||||
- composer_auth2
|
||||
- composer_auth
|
||||
inbucket:
|
||||
image: inbucket/inbucket
|
||||
restart: always
|
||||
@ -92,7 +92,5 @@ secrets:
|
||||
file: ~/.ssh/id_rsa
|
||||
user_known_hosts:
|
||||
file: ~/.ssh/known_hosts
|
||||
composer1_auth:
|
||||
file: ~/.composer/auth.json
|
||||
composer2_auth:
|
||||
composer_auth:
|
||||
file: ~/.config/composer/auth.json
|
||||
|
@ -30,7 +30,7 @@ RUN if [ ${INSTALL_PEAR_MAIL} = true ]; then \
|
||||
###########################################################################
|
||||
|
||||
# Copy xdebug configuration for remote debugging
|
||||
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
||||
COPY ./xdebug2/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
||||
|
||||
###########################################################################
|
||||
# Tune opts:
|
||||
|
@ -1 +0,0 @@
|
||||
#* * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1
|
@ -1,6 +1,10 @@
|
||||
#!/bin/bash
|
||||
rm ${HOME}/start-xdebug.sh
|
||||
rm ${HOME}/quit-xdebug.sh
|
||||
rm ${HOME}/restart-nginx.sh
|
||||
rm ${HOME}/mysql.sh
|
||||
rm ${HOME}/enter-to-workspace.sh
|
||||
DIR="$(realpath $(dirname "$(readlink -f "$0")"))"
|
||||
|
||||
BASH_SCRIPTS_DIR="${DIR}/bash"
|
||||
|
||||
BASH_SCRIPTS=(ls $BASH_SCRIPTS_DIR)
|
||||
|
||||
for FILENAME in "${BASH_SCRIPTS[@]}"; do
|
||||
ln -s ${BASH_SCRIPTS_DIR}/${FILENAME} ${HOME}/
|
||||
done
|
Reference in New Issue
Block a user