Skip to content

Instantly share code, notes, and snippets.

@brianmcmichael
Created July 21, 2016 16:18
Show Gist options
  • Save brianmcmichael/4fffc712a2effe2eacfc7a26edf17200 to your computer and use it in GitHub Desktop.
Save brianmcmichael/4fffc712a2effe2eacfc7a26edf17200 to your computer and use it in GitHub Desktop.
OnDemand

OnDemand (PUDL Apps)

Nodes

websvcs02.osc.edu

  • development apps for OnDemand as well as Passenger apps are run here
  • epi-dev.osc.edu runs here
  • location of apps: ~ndem0010/drupal/<app>

websvcs06.osc.edu

  • production OnDemand is run on this node
  • epi.osc.edu runs here
  • location of apps: ~ndem0009/drupal/<app>

SVN cheatsheet

Some useful SVN commands that I encountered when editing PUDL apps.

svn info

How to retrieve information about a given SVN repo.

# /nfs/04/ndem0009/drupal/cfp

$ svn info
Path: .
URL: https://svn.osc.edu/repos/param/ndemc/cfp/tags/0.25
Repository Root: https://svn.osc.edu/repos/param
Repository UUID: 28bff010-de06-0410-adaf-cabd42029014
Revision: 8953
Node Kind: directory
Schedule: normal
Last Changed Author: efranz
Last Changed Rev: 8953
Last Changed Date: 2014-10-30 11:37:16 -0400 (Thu, 30 Oct 2014)

The following commands are useful when making code changes and pushing those changes to production.

svn commit

First you will commit your changes with a message.

$ svn commit -m "msg" --username jnicklas

svn ls

To get a list of tags allowing you to choose an unused tag, you would list the contents of the tags directory in the SVN repo.

$ svn ls https://svn.osc.edu/repos/param/lamps/acp/tags/

svn copy

You will then copy the current trunk to an unused tag.

$ svn copy https://svn.osc.edu/repos/param/lamps/acp/trunk https://svn.osc.edu/repos/param/lamps/acp/tags/0.16 -m "" --username jnicklas

svn switch

Under the production directory (under the ndem0009 user) you would then switch the currently used tag with the tag you just created.

$ svn switch https://svn.osc.edu/repos/param/lamps/acp/tags/0.16

Development

Catalog

All versions of the catalog can be found in

~ndem0009/drupal/catalog_*

catalog : prod catalog : prod apps (ndem0009)

catalog_test : test catalog : prod apps (ndem0009)

catalog_dev : dev catalog : prod apps (ndem0010)

This is the only development app in the ndem0009 account. This was to keep the interns from modifying the code.

Whitelist

There is a whitelist of users that can access the development Catalog. This list can be found at:

~ndem0009/drupal/catalog_dev_whitelist.txt

which is referenced in

~ndem0009/drupal/catalog_dev/modules/osc_ondemand/osc_ondemand.module

App list

The list of apps displayed in the development Catalog can be found at:

~ndem0009/drupal/catalog_dev/catalog_dev.yml

which is referenced in

~ndem0009/drupal/catalog_dev/modules/osc_ondemand/AppModel.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment