Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
Diffstat (limited to 'node')
-rwxr-xr-xnode20
1 files changed, 11 insertions, 9 deletions
diff --git a/node b/node
index 49dd29e..f1f5893 100755
--- a/node
+++ b/node
@@ -1,13 +1,15 @@
#!/usr/bin/env bash
-user_id=$(id -u)
-image=btroops
+#user_id=$(id -u)
+#image=btroops
-if [[ $1 == run && $2 == test* ]]
-then
- port=3005
-else
- port=8080
-fi
+#if [[ $1 == run && $2 == test* ]]
+#then
+# port=3005
+#else
+# port=8080
+#fi
-docker run --rm --init -it -v $PWD:/usr/src/app -u $user_id:$user_id -p $port:$port $image node $@
+#docker run --rm --init -it -v $PWD:/usr/src/app -u $user_id:$user_id -p $port:$port $image node $@
+
+source ./scripts/docker-run node $@