Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build #33

Open
vintentou opened this issue Jun 29, 2017 · 1 comment
Open

Build #33

vintentou opened this issue Jun 29, 2017 · 1 comment

Comments

@vintentou
Copy link

Hi, how can I make production build?

@tmeasday
Copy link
Owner

tmeasday commented Jun 30, 2017

Hey @vintentou!

It's actually not that difficult, we should really add it to CGS. I haven't had a lot of time to look at it.

Basically we could add a build script that runs babel into a dist directory and a start script that runs dist/index from there. We'd need to add some instructions about setting MONGO_URL and there'd be a few details to make sure we get right.

OTOH; it's not a huge deal to just run the development mode in production (I'm doing so with a couple of apps, although they don't get a lot of traffic so YMMV). If you pass MONGO_URL it won't start up the local mongo, and although babel-node isn't as efficient as node in my experience it's not terrible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants