Conversation
e83d3d4 to
86f6d48
Compare
86f6d48 to
e8556d5
Compare
| [confirm('Deploying to production manually is very dangerous. Proceed?')] | ||
| deploy-web-production: | ||
| just --justfile "{{justfile()}}" --set GEMMA_WEB_DEPLOY_SERVER {{PRODUCTION_DEPLOY_SERVER}} deploy-web 'gemma' | ||
|
|
There was a problem hiding this comment.
@oganm I've added some tasks with confirmation in case you need to deploy to production manually.
e8556d5 to
29deb31
Compare
|
|
||
| maven_site_dir=$($MAVEN help:evaluate -Dexpression=pavlab.siteDir -q -DforceStdout) | ||
| gemma_version=$($MAVEN help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
| basecode_version=$($MAVEN help:evaluate -Dartifact=baseCode:baseCode -Dexpression=project.version -q -DforceStdout) |
There was a problem hiding this comment.
One important caveat here, mvnd does not appear to be capable of evaluating expression, or at least not with this syntax, so we need to make sure that we're using vanilla Maven.
| else | ||
| # TODO: default to local deployment | ||
| deploy_server=$($MAVEN help:evaluate -Dexpression=pavlab.server -q -DforceStdout) | ||
| fi |
There was a problem hiding this comment.
To mimic what maven does, we need to check if a local deployment is performed and then only use the maven_site_dir as-is. Otherwise, it needs to be used through ssh.
| [confirm('Deploying to production manually is very dangerous. Proceed?')] | ||
| deploy-web-production: | ||
| just --justfile "{{justfile()}}" --set GEMMA_WEB_DEPLOY_SERVER {{PRODUCTION_DEPLOY_SERVER}} deploy-web 'gemma' | ||
|
|
There was a problem hiding this comment.
A deployment to production should probably include a call to clean-web for safety.
| deploy-cli ref: build-cli update-completion-scripts | ||
| ./gemma-cli/deploy.sh "{{ref}}" | ||
|
|
||
| [confirm('Deploying to production manually is very dangerous. Proceed?')] |
There was a problem hiding this comment.
Include a clean-cli when deploying to production.
ac18387 to
4e08605
Compare
Relocate deployment scripts in a single scripts/ location.
4e08605 to
c38172c
Compare
| # This is the general deployment server | ||
| DEPLOY_SERVER := "frink.pavlab.msl.ubc.ca" | ||
| PRODUCTION_DEPLOY_SERVER := "moe.pavlab.msl.ubc.ca" | ||
| DEVELOPMENT_DEPLOY_SERVER := "chalmers.pavlab.msl.ubc.ca" |
There was a problem hiding this comment.
These should be defined externally.
gemma-cli-custom-build) with completion