Skip to content

hivejs/heroku-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A ready-made Hive.js build for Heroku

This repo contains a normal hive.js installation with the files necessary to deploy to heroku. It does not contain any plugins, by default, though.

Presets

  • DB: MySQL
  • Real-time transport: engine.io
  • broadcast transport: in-memory
  • editors: CodeMirror, CKeditor, MethodDraw
  • plugins: none

Set-up

1. Get teh codez

git clone https://github.com/hivejs/heroku-app "hivejs-heroku" && cd hivejs-heroku

2. Get teh bling

Next, install the plugins you want, see the hive docs.

npm install <...plugins separated by spaces...>

3. Build it

Now, you need to build the client-side code:

npm run build

4. Hero, ku!

Add heroku as a git remote repo.

You might need to set NODE_ENV=test env var before starting the app, to allow hive to create the necessary MySQL tables.

heroku config:set NODE_ENV=test

Finally you need to enable access to MySQL (taken from heroku's docs).

heroku addons:create cleardb:ignite

That's it. Push and ✨!

About

hive.js in a ready-to-deploy heroku app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published