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

budo and heroku #174

Open
rimager opened this issue Sep 14, 2016 · 1 comment
Open

budo and heroku #174

rimager opened this issue Sep 14, 2016 · 1 comment

Comments

@rimager
Copy link

rimager commented Sep 14, 2016

Can I deploy budo to heroku?

Here is my package.json

"scripts": {
    "start": "budo index.js --serve=bundle.js",
    "test": "eslint --no-eslintrc -c .eslintrc index.js",
    "build" : "browserify index.js | uglifyjs -c -m > bundle.js"
  },
@pinn3
Copy link

pinn3 commented Oct 16, 2016

Yes you can, but it's not recommended as budo is a development server, not intended for production. It watches and builds your files, then serves the built bundle. Whenever you deploy your app to Heroku, the service will restart anyways and therefor the watch functionality wont serve any purpose.

Also, if you only want to serve a static page, then Heroku might be a bit overkill. I suggest that you build the the bundle with your build-script, and then deploy it on a static web server, such as surge.

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