infoderm / patients

:face_with_thermometer: Patients meteor app
GNU Affero General Public License v3.0
5 stars 2 forks source link

Get rid of `mup` #797

Open make-github-pseudonymous-again opened 4 months ago

make-github-pseudonymous-again commented 4 months ago

mup is currently the only automated way to deploy patients. mup is coupled to Meteor and we want to get rid of Meteor. A solution based on docker-compose should be sufficient.

make-github-pseudonymous-again commented 3 months ago

From https://forums.meteor.com/t/all-configured-authentication-methods-failed-in-mup/58728/3:

To build and deploy you do the following:

Build your app: meteor build ../build --architecture os.linux.x86_64 Deploy it: scp ../build/app.tar.gz user@server:~/ (Optional Backup to instant rollback): sudo cp -R bundle bundle-backup/ Unpack it on server: tar -zxf app.tar.gz cd into bundle directory and run install: (cd programs/server && npm install) Run: node main.js (do this inside a screen and dettach ctrl+a d it so it runs in the background with screen and doesn’t close)

Important: For first time configuration, you just tell nginx to run localhost:your-port as the upstream and export shell variables:

export MONGO_URL='mongodb://user:password@host:port/databasename'
export ROOT_URL='http://example.com'
export MAIL_URL='smtp://user:password@mailhost:port/'