summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorRaphael <mail@raphaelkabo.com>2024-08-10 16:39:36 +0100
committerGitHub <noreply@github.com>2024-08-10 16:39:36 +0100
commitf150caff7e3846ca2ff3d279f966c6e439541235 (patch)
treebf694a625b09c57b27948de371a22143014de1d4 /deploy.sh
parent0e01f8f0e64591e6cdb0d4ea7075ec0da616938c (diff)
parentf974269014302e32a4c9aa5af746810dc1f40fcb (diff)
Merge pull request #167 from lowercasename/rk/deploy-via-docker
Switch to deploy via Docker Compose
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/deploy.sh b/deploy.sh
deleted file mode 100755
index 9d41e63..0000000
--- a/deploy.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-set -e
-
-# Set up and redeploy Gathio. Called by `pm2 deploy`.
-# Working directory is the root of the repo.
-
-# PM2 doesn't load the user env, so this gets nvm into the PATH
-export NVM_DIR=~/.nvm
-source ~/.nvm/nvm.sh
-# Set the right Node version
-nvm use
-# Need to use `development` here else pnpm won't install devDependencies (i.e. tsc)
-NODE_ENV=development pnpm install
-# This calls `tsc`, which fails due to type errors while we're transitioning
-# fully to TypeScript, so we short-circuit it to true to continue running the
-# deploy script. TODO: Remove this short-circuit when we've migrated to
-# TypeScript and don't expect any more errors.
-pnpm build || true
-pm2 reload ecosystem.config.cjs production
-pm2 save
-
-# Build the docs and deploy
-mkdocs build -d /var/www/docs.gath.io \ No newline at end of file