Skip to content

Instantly share code, notes, and snippets.

@maxammann
Created January 8, 2021 16:30
Show Gist options
  • Save maxammann/dcc721c03a4498ba9d428d09c9e25525 to your computer and use it in GitHub Desktop.
Save maxammann/dcc721c03a4498ba9d428d09c9e25525 to your computer and use it in GitHub Desktop.
Run Parabol self hosted
GOOGLE_OAUTH_CLIENT_ID='...'
GOOGLE_OAUTH_CLIENT_SECRET='...'
CDN_BASE_URL='https://retro:9443/'
SERVER_SECRET='...'
GRAPHQL_HOST='localhost:3000'
GRAPHQL_PROTOCOL='http'
HOST='retro'
INVITATION_SHORTLINK='retro/invitation-link'
# MAIL GLOBALS. PROVIDER: mailgun | google
MAIL_PROVIDER='google'
MAIL_FROM='parabol@retro'
MAIL_GOOGLE_USER='parabol@retro'
MAIL_GOOGLE_PASS='...'
MIN_LOG_DURATION='200'
PORT='3000'
PROTO='https'
REDIS_URL='redis://localhost:6379'
RETHINKDB_URL='rethinkdb://localhost:28015/parabol'
RETHINKDB_SSL='false'
# Path to static files
AWS_S3_BUCKET='retro:9443/build/v5.30.0'
FILE_STORE_PROVIDER='local'

As parabol user:

cd ~/parabol
git checkout <tag>
yarn
Apply the patch in ~/diff-reflection-disable manually
yarn
check .env for versions
yarn update-schema
yarn build
yarn db:migrate (must print migrations)

As root:

version=v5.30.0
cp -r /home/parabol/parabol/build/* /var/www/parabol/build/v5.30.0/ && chown www-data:www-data -R  /var/www/parabol
cp -r /home/parabol/parabol/static/images/* /var/www/parabol/build/v5.30.0/static/ && chown www-data:www-data -R  /var/www/parabol

As parabol user:

test using yarn start

@ocroquette
Copy link

ocroquette commented Jan 29, 2023

Hello @maxammann, thank you for sharing the information. I am trying to set up Parabol myself. Could you elaborate on the "diff-reflection-disable" patch? Or maybe the instructions are anyway not up to date anymore?

It looks we are not alone to have difficulties setting it up: ParabolInc/parabol#6724

@maxammann
Copy link
Author

I would guess this is outdated. But I would be happy about instruction on how to set it up 2023 :D

@ocroquette
Copy link

Thanks for the quick feedback! I will work in this again soon hopefully. Do you remember what the patch was about? May be it will come in handy again.

@maxammann
Copy link
Author

The patch is optional. It disabled an integration with a Google API if I remember correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment