pentaclexyz / minipent

mini pentacle - built for orgs to un-scale
https://minipent.xyz
6 stars 3 forks source link

set up opyn instance #25

Open pentcle opened 1 year ago

pentcle commented 1 year ago
pentcle commented 1 year ago

figma: https://www.figma.com/file/rNmjTJL3xib0O1P4N3B5tM/opyn?node-id=0%3A1

pentcle commented 1 year ago

Image

pentcle commented 1 year ago

notes on setting up the instance on railway

use pentacle cloudinary for now

now making a new repo from scratch

create new project in railway link to minipent github repo for front and back ends create new postgres db push minipent db (as a template to over-write (makes running the fe easier to have fields populated))

get the $PORT from the db settings and add to be variables fe wants $HOST 0.0.0.0

take a copy of a db to use

$ pg_dump mydb > db.sql

$ PGPASSWORD=$PGPASSWORD pg_dump -h containers-us-west-00.railway.app -U postgres -p $PORT -d $DATABASE > minipent-01.sql

login to railway db and drop the public schema

$ PGPASSWORD=$PGPASSWORD psql -h containers-us-west-00.railway.app -U postgres -p 7021 -d railway

DROP SCHEMA public CASCADE; CREATE SCHEMA public;

import dumpfile to railway

navigate to db-backups dir

$ PGPASSWORD= $PGPASSWORD psql -h containers-us-west-00.railway.app -U postgres -p 7021 -d railway < minipent-01.sql

pentcle commented 1 year ago

this does not yet include the org custom theme, which i am working on this week