diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index 934c77d..66ff14a 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -80,12 +80,12 @@ try: sys.stdout.flush() elif sys.argv[1] == 'http-server': subprocess.check_call(r''' - sudo docker run - -p 80:80 - -u root - -it --entrypoint=/bin/bash - -v $PWD:/app:ro - nginx:latest + sudo docker run \ + -p 80:80 \ + -u root \ + -it --entrypoint=/bin/bash \ + -v $PWD:/app:ro \ + nginx:latest \ -c 'echo "server{listen 80; root /app; location / {autoindex on;}}" > /etc/nginx/conf.d/default.conf; nginx -g "daemon off;"' ''', shell=True) else: