Difference between revisions of "Current work flow for setting up datapro to run on a new site with integration into the diagnostic web page"
Jump to navigation
Jump to search
(Created page with "===Initial Stuff=== * download a copy of the data onto your local machine * either by hand or using an automated tool set up the parameter and key files. * transfer the c...") |
|||
Line 19: | Line 19: | ||
* edit /var/www/html/data/diag.json and add the information for this new site. | * edit /var/www/html/data/diag.json and add the information for this new site. | ||
* create symlinks for the output & web directories from the processed data into the web directory | * create symlinks for the output & web directories from the processed data into the web directory | ||
+ | |||
+ | ... I am putting together another git project to drive all of this. |
Revision as of 15:07, 7 November 2016
Initial Stuff
- download a copy of the data onto your local machine
- either by hand or using an automated tool set up the parameter and key files.
- transfer the configuration files to the production machine someplace like:
- /var/site/$STATION_GROUP/$STATION_NAME/config
- create a bash script to process the data
- test the bash script
- once it works add a reference to it to the primary site processing cron script
Adding the new site to the diagnostic page
- on the main diagnostic web directory such as /var/www/html/data/ make directory $STATION_GROUP/$STATION_NAME
mkdir /var/www/html/data/$STATION_GROUP mkdir /var/www/html/data/$STATION_GROUP/$STATION_NAME
- copy /var/www/html/data/viz_template/full.html to /var/www/html/data/ $STATION_GROUP/$STATION_NAME
cp /var/www/html/data/viz_template/full.html /var/www/html/data/$STATION_GROUP/$STATION_NAME/ cp /var/www/html/data/viz_template/recent.html /var/www/html/data/$STATION_GROUP/$STATION_NAME/
- edit /var/www/html/data/diag.json and add the information for this new site.
- create symlinks for the output & web directories from the processed data into the web directory
... I am putting together another git project to drive all of this.