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

[Question] Why I get "unable to find pop config file" running a builded executable? #1865

badstorm opened this issue Dec 10, 2019 · 1 comment


Copy link

@badstorm badstorm commented Dec 10, 2019

I configured a clean dev envirorment to work with buffalo and go modules. (Tested on mac dev envirorment with Catalina 10.15.1 and on linux dev envirorment with Ubuntu 18.04)
To do so I installed:

  • Go (1.13.5)
  • Buffalo (0.15.3)

and configured _.zshrc (or .bash_profile) with:

export GO111MODULE=on
export PATH=$PATH:$HOME/GO/bin

After that i created a new project running "buffalo new ..."

Running "buffalo dev" works. But when i build an executible with "buffalo build" and run it outside the project directory i get "unable to find pop config file"

The problem is that i cannot run anymore a buffalo project on the server.

Before using modules was simply runing the command GOOS=linux GOARCH=amd64 buffalo build copy and install the executible on the server works.

I miss some extra configuration?


This comment has been minimized.

Copy link

@vrubiolo vrubiolo commented Jan 24, 2020

Hi there, this error is usually when database.yml cannot be found in the usual path. You mention you are outside the project dir, this is where database.yml is searched for (cf
If you move database.yml in the same directory as your executable, does it work better (I agree all should be self contained when building for prod, I am going through this myself as of right now)?

Edit: I see you initially started in #1682 and it looks like the issue has actually not been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.