Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.37 KB

DEVELOP.rst

File metadata and controls

53 lines (30 loc) · 1.37 KB

Cloud Scheduler GUI development

Installation

From your home directory

  1. Checkout github repository and switch to your branch

    git clone https://github.com/pragmagrid/cloud-scheduler-gui.git
    cd cloud-scheduler-gui
    git checkout multisite
    
  2. Create distribution, run the following commands

    cd UI
    npm install
    

    Open file /var/www/html/cloud-scheduler-gui/UI/src/config/endpoints.js and edit first line that specifies endpoint (variable API_SERVER) to your URL server and API path. For example

    $ const API_SERVER = 'http://rocks-54.sdsc.edu/cloud-scheduler/scripts'
    
  3. Create build using command

    npm run build-unix
    

    This will generate an app.js file in your dist/ directory.

  4. Deploy apps.js file generated in a previous step on your webserver

    sudo cp dist/app.js /var/www/html/cloud-scheduler
    

Code maintenance

Check in your changes into Github frequently -- Javascript is hard to debug so it's good to be able to backtrack when needed.

  1. notify git waht files you want to commit

    git add <name of changed file>
    
  2. use commit command below (It will open an editor) and always use descriptive comments about the change or addition

    git commit
    
  3. Push your changes from your local repository to the github

    git push