This repository has been archived on 2024-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
sc-portal/smf/run.sh
Marsell Kukuljevic d07d11cf04 Update backend to reflect that SPA now loads package and image rates from
static/assets/data/(images|packages).json
2021-04-29 13:32:12 +02:00

11 lines
376 B
Bash
Executable File

#!/bin/sh
cd /opt/spearhead/portal
# first extract the package and image rates from VM metadata
/usr/sbin/mdata-get sc:image_subscription_rates | /usr/bin/gzip --best > static/assets/data/images.json.gz
/usr/sbin/mdata-get sc:package_rates | /usr/bin/gzip --best > static/assets/data/packages.json.gz
# start up our server
/opt/local/bin/node bin/server.js cfg/prod.json &