...
- Clone repository to local and get appropriate branch (here gltg branch).
Code Block title Clone git clone ssh://git@opensource.ncsa.illinois.edu:7999/geod/geodashboard-v3.git cd geodashboard-v3 git checkout gltg
- Build gd3
Code Block title Build yarn install yarn run build
Copy to Nginx to Proxy Server
With key
get key file from nebula at: https://nebula.ncsa.illinois.edu/dashboard/project/access_and_security/keypairs/gltg/
copy source directory to server
Code Block language bash title Copy to Server scp -i -r ~/.ssh/gltg.pem -r build ubuntu@gltg-dev.ncsa.illinois.edu:/home/ubuntu
With password
Code Block title Copy with Password scp -r build ubuntu@gltg-dev.ncsa.illinois.edu:/home/ubuntu
- Install gd3
Find location (Here the nginx config is named 'gltg', use the config name in /etc/nginx/sites-enabled/
Code Block title Get gd3 location more /etc/nginx/sites-enabled/gltg | grep root #output like this# root /usr/share/nginx/html/gd3;
Backup working version
Code Block title Backup working gd3 cp -r gd3 gd3_<date>
replace index.html and bundle.js (if config.js needs updating, it needs to be replaced, too, make sure to copy all custom fields from previous config).
Code Block title Update gd3 cd /usr/share/nginx/html/gd3 rm bundle.js index.html cp /home/ubuntu/build/index.html . cp /home/ubuntu/build/bundle.js
Test
...