config en cours, bloque sur composer et son utilisation du proxy
This commit is contained in:
13
scripts/create-ngrok.sh
Normal file
13
scripts/create-ngrok.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
PATH_NGROK="/home/vagrant/.config/ngrok"
|
||||
PATH_CONFIG="${PATH_NGROK}/ngrok.yml"
|
||||
|
||||
# Only create a ngrok config file if there isn't one already there.
|
||||
if [ ! -f $PATH_CONFIG ]; then
|
||||
mkdir -p "$PATH_NGROK"
|
||||
cat > "$PATH_CONFIG" << EOF
|
||||
version: 2
|
||||
web_addr: $1:4040
|
||||
EOF
|
||||
fi
|
||||
Reference in New Issue
Block a user