Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 948 Bytes

deploying.md

File metadata and controls

24 lines (17 loc) · 948 Bytes

Deploying your Chartbuilder

Once you're done customizing, you'll want to build the source files so that you can upload them to your hosted location.

Deployment is easy! Just do:

	npm run build

This will use gulp to concatenate and minify your javascript. (The javascript you get from npm run dev is not minified, if you need to check what that looks like.) The build task will also convert all of the fonts defined in your CSS base64, which makes image export more robust.

Once that completes, the finished product will live in the build folder inside of your project directory. You can just move the contents of build to a server using FTP or however else. Or you might create a simple auto-deploy script like so:

	#!/bin/sh
	echo "BUILDING CHARTBUILDER..."
	npm run build
	echo "SYNCING BUILD WITH REMOTE FILES..."
	rsync -rav --progress build/* <MY_SERVER_LOCATION>