Browse Source

cleans up code

test
Jean-Christophe Vanhalle 1 year ago
parent
commit
c1ae487788
3 changed files with 9 additions and 6 deletions
  1. 3
    0
      env_files/project-example.env
  2. 4
    4
      env_files/ssh-tunnel-example.env
  3. 2
    2
      start-ssh-tunnel.sh

+ 3
- 0
env_files/project-example.env View File

@@ -0,0 +1,3 @@
PROJECT_TYPE=wordpress
PROJECT_TYPE=laravel
PROJECT_TYPE=livewire

+ 4
- 4
env_files/ssh-tunnel-example.env View File

@@ -1,4 +1,4 @@
local_ip_on_remote=localhost
local_port=5432
local_port_on_remote=5432
remote_host=federal-non-interactive
LOCAL_IP_ON_REMOTE=localhost
LOCAL_PORT=5432
LOCAL_PORT_ON_REMOTE=5432
REMOTE_HOST=federal-non-interactive

+ 2
- 2
start-ssh-tunnel.sh View File

@@ -20,5 +20,5 @@ ssh \
-v \
-N \
-L \
"${TRAEFIK_LISTENING_IP}:${local_port}:${local_ip_on_remote}:${local_port_on_remote}" \
"${remote_host}"
"${TRAEFIK_LISTENING_IP}:${LOCAL_PORT}:${LOCAL_IP_ON_REMOTE}:${LOCAL_PORT_ON_REMOTE}" \
"${REMOTE_HOST}"

Loading…
Cancel
Save