datajoint-company / U19-Data-Viewer

0 stars 2 forks source link

Developer instructions

Infrastructure

Deploy the test website

  1. Connect to the braincogs01.pni.princeton.edu server.

    ssh <netID>@braincogs01.pni.princeton.edu
  2. Clone the repository.

    git clone https://github.com/<BrainCOGS or vathes>/U19-Data-Viewer.git 
  3. Rename the file .env.template to .env.

  4. Copy and modify the following values into the .env file.

    SERVICEHOSTNAME=braincogs01-test0.pni.princeton.edu
    CASLOGINURL=https://fed.princeton.edu/cas/login
    CASVALIDATEURL=https://fed.princeton.edu/cas/serviceValidate
    COMPOSE_PROJECT_NAME=u19_data_viewer_test
    DJ_HOST=datajoint00.pni.princeton.edu
    DJ_USER=<datajointusername>
    DJ_PASS=<datajointpassword>
  5. Build the new Docker image and start the container.

    docker-compose up -d --build
  6. View the deployed website in your browser at braincogs01-test0.pni.princeton.edu.

Modify the test website

  1. Make relevant changes to the code.

  2. Stop the container.

    docker-compose down
  3. Start the container.

    docker-compose up
  4. Refresh the webpage.