Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 2.07 KB

developing.md

File metadata and controls

54 lines (38 loc) · 2.07 KB

Developing RAMPART

Developing the client

This runs a little slower, but the client will update automatically as you modify the source code.

  • Start the daemon/server (node rampart.js ...) as normal, but add the --devClient flag
  • Run npm run start in a second terminal window
  • Open localhost:3000 in a browser (not 3001)

This hot-reloading ability is not available for the server, so changes to server code require you to kill & restart the server (node rampart.js).

"Live" Bascecalling from a bulkfile

Releasing a new conda package

You must be a member of the artic-network anaconda group & have permission to write to the rampart package

  • Update the version in package.json, commit to master, tag & push to github
git tag -a v1.1.0rc2 -m "version 1.1.0 release candidate 2"
git push --follow-tags

This will create the tar.gz like https://github.com/artic-network/rampart/archive/v1.1.0rc2.tar.gz

  • Modify ./recipes/conda/meta.yaml to include the new version, new URL to the above tarball and sha256 of the tarball. You may generate the hash via:
wget -O- https://github.com/artic-network/rampart/archive/v1.0.0-alpha.1.tar.gz | shasum -a 256
conda config --set anaconda_upload no
# conda-build purge-all
cd recipes/conda
conda-build .
conda-build . --output 	# see where package is
anaconda login 			# login as user
anaconda upload [--label test] --user artic-network </path/to/conda-package.tar.bz2>

Common bugs

  • Ensure that package.json contains "homepage": "https://artic.network/" or similar, as otherwise npm run build will create assets with a relative path. This results in errors similar to
The resource from “http://localhost:3000/rampart/static/css/2.870097cc.chunk.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

You can inspect the ./build/index.html file (from the conda install, not a source install) and check that the resources (scripts, css etc) are loaded from the /static directory, e.g. <script src="/static/js/....