Instructions on how to deploy a MediaHubMX addon to various hosting providers.
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
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)