Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PROJECT_NAME to override in all cases in wb script #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Model/bin/wb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ my $gusHome = $ENV{GUS_HOME};
my ($projectName, $webapp) = $baseGus =~ /\/(\w+)\/([\w\.-]+)\/?$/;
my $tomcatName = $projectName;

##deal with change Mark made so that Gates and ICEMR sites are run out of the ClinEpiDB tomcat
##requires developer to set a PROJECT_NAME environment variable appropriately ... best in the etc/setenv file that is sourced

$projectName = ($projectName eq 'ClinEpiDB' && $ENV{PROJECT_NAME}) ? $ENV{PROJECT_NAME} : $projectName;
# allow override of the project name (e.g. PlasmoDB, VectorBase, EuPathDB) that is otherwise
# derived from BASE_GUS
$projectName = $ENV{PROJECT_NAME} // $projectName;

unless($baseGus && $projectHome && $gusHome) {
die "WHOOPS! Did you forgot to source your setenv file?";
Expand Down