Meteor Up deploy
is it possible to deploy in Meteor Up?
Sure, I don't see why not. The viewers are standard Meteor applications. I've never tried it though. If you manage, please post here with a sample config file.
I tried but I could not deploy it without Amazon AWS using this tutorial:
https://medium.com/@philipaffulnunoo/how-to-deploy-meteor-1-4-app-to-aws-ec2-in-2017-bfea1a7c308a
I think the problem is the line METEOR_PACKAGE_DIRS = "'../Packages meteor' --settings ../config/orthancDICOMWeb.json"
below the settings:
Deploy on AWS EC2 Ubuntu 16.06
install Meteor Up https://github.com/abernix/kadirahq-meteor-up
npm install --global mup
Clone Project
git clone https://github.com/OHIF/Viewers.git
acess OHIFViewer and install dependences
cd Viewers/OHIFViewer
meteor npm install --save bcrypt
meteor npm install --save babel-runtime
npm i bcrypt --save
npm install node-gyp -g
sudo apt-get install python
sudo apt-get install make
sudo apt-get install g++
exit OHIFViewer folder and create deploy mup folder
cd .. && mkdir deploy && cd deploy
init Meteor Up
mup init
edit mup.js
nano mup.js
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: 'HOST_AWS',
username: 'ubuntu',
pem: '/var/www/html/Viewers/PEMFILE.pem'
// password: 'server-password'
// or neither for authenticate from ssh-agent
}
},
app: {
// TODO: change app name and path
name: 'app',
path: '/var/www/html/Viewers/OHIFViewer',
servers: {
one: {},
},
buildOptions: {
serverOnly: true,
},
env: {
// TODO: Change to your app's url
// If you are using ssl, it needs to start with https://
PORT:80,
METEOR_PACKAGE_DIRS: "'../Packages meteor' --settings ../config/orthancDICOMWeb.json",
ROOT_URL: 'HOST_AWS',
MONGO_URL: 'mongodb://localhost:27017/ohifviewer;',
},
// ssl: { // (optional)
// // Enables let's encrypt (optional)
// autogenerate: {
// email: '[email protected]',
// // comma separated list of domains
// domains: 'website.com,www.website.com'
// }
// },
docker: {
// change to 'abernix/meteord:base' if your app is using Meteor 1.4 - 1.5
image: 'abernix/meteord:node-8.4.0-base',
},
// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
enableUploadProgressBar: true
},
mongo: {
version: '3.4.1',
servers: {
one: {}
}
}
};
Save file
mup deploy
mup setup
mup deploy
error :
Building App Bundle Locally
=> Errors while initializing project:
While selecting package versions:
error: unknown package in top-level dependencies: ohif:polyfill
unknown package in top-level dependencies: ohif:core
unknown package in top-level dependencies: ohif:commands
unknown package in top-level dependencies: ohif:hotkeys
unknown package in top-level dependencies: ohif:header
unknown package in top-level dependencies: ohif:cornerstone
unknown package in top-level dependencies: ohif:viewerbase
unknown package in top-level dependencies: ohif:study-list
unknown package in top-level dependencies: ohif:dicom-services
unknown package in top-level dependencies: ohif:hanging-protocols
unknown package in top-level dependencies: ohif:metadata
I'm guessing you need to fix this line in mup.js under (env): METEOR_PACKAGE_DIRS: "'../Packages meteor' --settings ../config/orthancDICOMWeb.json"
you could try this: METEOR_PACKAGE_DIRS: '../Packages',
It might need to be an absolute path, I'm not sure how well a relative path will work with mup since it depends on what working directory it starts if from.
@radicalrob in mup.js not working using METEOR_PACKAGE_DIRS: '../Packages',
worked as follows:
$ export METEOR_PACKAGE_DIRS=../Packages
$ mup setup
$ mup deploy
Then to deploy on EC2 AWS follow these steps:
install Meteor Up https://github.com/abernix/kadirahq-meteor-up
npm install --global mup
Clone Project
git clone https://github.com/OHIF/Viewers.git
acess OHIFViewer and install dependences
cd Viewers/OHIFViewer
meteor npm install --save bcrypt
meteor npm install --save babel-runtime
npm i bcrypt --save
npm install node-gyp -g
sudo apt-get install python
sudo apt-get install make
sudo apt-get install g++
exit OHIFViewer folder and create deploy mup folder
cd .. && mkdir deploy && cd deploy
init Meteor Up
mup init
edit mup.js
nano mup.js
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: 'HOST_AWS',
username: 'ubuntu',
pem: '/var/www/html/Viewers/PEMFILE.pem'
// password: 'server-password'
// or neither for authenticate from ssh-agent
}
},
app: {
// TODO: change app name and path
name: 'app',
path: '/var/www/html/Viewers/OHIFViewer',
servers: {
one: {},
},
buildOptions: {
serverOnly: true,
},
env: {
// TODO: Change to your app's url
// If you are using ssl, it needs to start with https://
PORT:80,
ROOT_URL: 'HOST_AWS',
MONGO_URL: 'mongodb://localhost:27017/ohifviewer;',
},
// ssl: { // (optional)
// // Enables let's encrypt (optional)
// autogenerate: {
// email: '[email protected]',
// // comma separated list of domains
// domains: 'website.com,www.website.com'
// }
// },
docker: {
// change to 'abernix/meteord:base' if your app is using Meteor 1.4 - 1.5
image: 'abernix/meteord:node-8.4.0-base',
},
// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
enableUploadProgressBar: true
},
mongo: {
version: '3.4.1',
servers: {
one: {}
}
}
};
Save file
mup deploy
$ export METEOR_PACKAGE_DIRS=../Packages
$ mup setup
$ mup deploy