Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.04 KB

deployment.md

File metadata and controls

52 lines (32 loc) · 1.04 KB

Deployment guide

Instructions on how to deploy a MediaHubMX addon to various hosting providers.

Heroku

Requirements

Make sure to have Heroku account and Heroku Toolbelt installed.

Deployment

Go to your addon directory, then run the following code:

# Create heroku application
$ heroku create your-app-name-123

# Set env variables (optional)
$ heroku config:set MY_CUSTOM_VALUE=foobar

# Execute deploy
$ git push heroku master

Vercel (ex now.sh)

Requirements

Account on vercel.com and Now CLI (npm i -g now) installed.

Deployment

Go to your addon directory, then run the following code:

# Add files related to vercel
$ npx @mediahubmx/create init-vercel

# Link project
$ now

# Set cache url (REDIS_CACHE is also supported)
$ now env add MONGO_CACHE

# Deploy
$ now deploy

Note: mlab.com offers free mongo instances (up to 0.5 GB storage)