Skip to content

Instantly share code, notes, and snippets.

@jordicenzano
Last active August 31, 2019 13:46
Show Gist options
  • Save jordicenzano/a943bda656ad1e0a0568fbaad311af05 to your computer and use it in GitHub Desktop.
Save jordicenzano/a943bda656ad1e0a0568fbaad311af05 to your computer and use it in GitHub Desktop.
Start simple webserver on 8080
#!/usr/bin/env bash
# Assume nodeJS and npm is installed
# Assume npm http-server is installed in global mode (-g)
echo "Starting local webserver on 8080"
http-server ~/origin -p 8080 --cors -c -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment