-
Notifications
You must be signed in to change notification settings - Fork 13
Publish a site externally
Billy Charlton edited this page Jun 30, 2017
·
2 revisions
« Back to Recipes for typical tasks
The code for Prospector is "static" meaning it is self-contained and doesn't require any back-end server software to run, other than a simple webserver. You can host it anywhere.
Surge
If you have surge
installed on your machine (which you can install with npm install -g surge
), you can publish on the Internet in mere seconds:
cd prospector/build
surge
It will generate a domain-name.surge.sh
for you, or you can choose your own subdomain like sfcta-mytool.surge.sh
.
Github Pages
Create a gh-pages
branch in any GitHub repository. You can push the content of the build
folder to that branch, and GitHub will publish the site at https://username.github.io/repositoryname
- Setting up a domain name with GitHub is a bit harder but Google around and you will find docs. (Add here when you get a chance)
Get Started
- Back-End Setup
- Setting up your development environment
- Building Prospector locally
- Publishing your changes
Other Useful Links
- Recipes for typical tasks
- Glossary
- Publishing instructions for CMP standalone site
- Deploying a new release GitHub Pages and Prospector
Platform Considerations
Background Information