From 3287d39906ce5018f6a3b264bf2657986eaded49 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 6 Mar 2024 15:23:53 +0300 Subject: Move CI/CD configurations from ENVVARS into a file. --- genenetwork-development.scm | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/genenetwork-development.scm b/genenetwork-development.scm index 8139635..7c34719 100644 --- a/genenetwork-development.scm +++ b/genenetwork-development.scm @@ -465,18 +465,27 @@ server described by CONFIG, a object." (setenv "GN2_PROFILE" #$(profile (content (package->development-manifest genenetwork2)) (allow-collisions? #t))) - (setenv "GN_PROXY_URL" "http://genenetwork.org/gn3-proxy/") - (setenv "GN_SERVER_URL" "https://cd.genenetwork.org/api3/") - (setenv "GN3_LOCAL_URL" - #$(string-append "http://localhost:" - (number->string gn3-port))) + (setenv "GN_SERVER_URL" "https://cd.genenetwork.org/api3/") + (setenv "GN3_LOCAL_URL" + #$(string-append "http://localhost:" + (number->string gn3-port))) (setenv "GENENETWORK_FILES" #$genotype-files) - (setenv "SQL_URI" "mysql://webqtlout:webqtlout@localhost/db_webqtl") + (setenv "SQL_URI" "mysql://webqtlout:webqtlout@localhost/db_webqtl") (setenv "HOME" "/tmp") (setenv "NO_REDIS" "no-redis") (setenv "RUST_BACKTRACE" "1") - (setenv "AUTH_SERVER_URL" "https://auth-cd.genenetwork.org/") - (setenv "GN2_SECRETS" #$gn2-secrets) + + (setenv + "GN2_SETTINGS" + #$(mixed-text-file "gn2-staging.conf" + "GN2_SECRETS=\"" gn2-secrets "\"\n" + "GN3_LOCAL_URL=\"" + (string-append "http://localhost:" + (number->string gn3-port)) + "\"\n" + "GN_SERVER_URL=\"https://cd.genenetwork.org/api3/\"\n" + "AUTH_SERVER_URL=\"https://auth-cd.genenetwork.org/\"\n" + "SQL_URI=\"mysql://webqtlout:webqtlout@localhost/db_webqtl\"\n")) ;; Start genenetwork2. (with-directory-excursion "genenetwork2" -- cgit v1.2.3