2021-04-11 21:51:52 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cd /opt/spearhead/portal
|
2021-04-27 01:03:21 +03:00
|
|
|
|
|
|
|
# first extract the package and image rates from VM metadata
|
2021-04-29 14:32:12 +03:00
|
|
|
/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
|
2021-04-27 01:03:21 +03:00
|
|
|
|
|
|
|
# start up our server
|
2021-04-11 21:51:52 +03:00
|
|
|
/opt/local/bin/node bin/server.js cfg/prod.json &
|