Skip to content

Instantly share code, notes, and snippets.

@2ajoyce
Last active July 26, 2017 13:38
Show Gist options
  • Save 2ajoyce/318b359d8b32c7d57bea70b1ea738eb8 to your computer and use it in GitHub Desktop.
Save 2ajoyce/318b359d8b32c7d57bea70b1ea738eb8 to your computer and use it in GitHub Desktop.
Script to serve an Angular2 app from Cloud9 for development testing
#!/bin/bash
# Usage instructions
# `git clone {} scripts/serve` To clone the repo
# `chmod +x scripts/serve/serve.sh` To mark the file executable
# `./scripts/serve/serve.sh` To run the file
ng serve --host 0.0.0.0 --port 8080 --public $C9_HOSTNAME --watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment