buffalo: Problem starting "buffalo dev" server

Problem:

When executing command to start local buffalo dev server, get an error when expecting normal start.

Output:

$ buffalo dev

Buffalo version 0.7.1

There was a problem starting the dev server: Unknown

Details: Go Version: 1.7.4 Buffalo Version: 0.7.1 MacOS: Sierra ( 10.12.1 )

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 22 (4 by maintainers)

Most upvoted comments

I don’t think changing the default db server is a good option, postgresql is one of the most used in development. Sqlite is fine to make a hello world!, but not for an agile startup. To configure postgresql, here you are some links: http://gobuffalo.io/docs/db (buffalo official docs, including explanation of how to change default db type) https://help.ubuntu.com/community/PostgreSQL (Postgresql installation and configuration from Ubuntu community help wiki)

That error means you have to configure your postgresql connection in database.yml and have a postgresql instance running. Have you it installed?

After doing some digging with @markbates, the local station I was on did not have Node or NPM installed.

Following these steps resolved my issue:

1) Ensure both Node & NPM are installed
2) npm install -g webpack
3) try renaming webpack.config.js

I’ll be submitting a PR to add more context to this error “Unknown”

Reference: https://github.com/gobuffalo/buffalo/blob/master/buffalo/cmd/dev.go#L80