This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to add or update environment variables in Laravel .env files | |
# Usage: ./env_updater.sh [webapps_directory] [env_key] [env_value] | |
WEBAPPS_DIR=${1:-"webapps"} | |
ENV_KEY=$2 | |
ENV_VALUE=$3 | |
# Check if required parameters are provided |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Installations | |
# ======================================================================== | |
# apache + centos 8 | |
# ======================================================================== | |
# create APP_DOMAIN.conf on /etc/httpd/conf.d/ | |
# fill with vhosts entry | |
<VirtualHost APP_DOMAIN:80> | |
ServerName APP_DOMAIN |