Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding environment variables before an app exists prevents app creation #11
I'm adding a new app to a server. When I do the following steps:
I get an error from the push:
ra:app(dev-procfile) ryan$ git push staging dev-procfile:master
I'm guessing git is mad that the /home/dokku/staging.myserver.com directory exists, but only contains the ENV file and is not a git repo.
Am I just using this wrong, or have I hit a race condition?
Hmm, that's interesting. So yes I believe you've hit a race condition. We need to move this cookbook over to using LWRPs for the
It's not a chef-dokku bug but rather from line 26 of dokku's
if [[ $1 == "git-receive-pack" && ! -d $APP_PATH ]]; then
referenced this issue
Dec 24, 2013
Yes, that is definitely the case. Thanks for pushing that PR to dokku.
Users will need to target dokku master instead of the
It does not solve the underlying issue, however. We should be using LWRPs for in-built dokku commands rather than duplicating the process manually. I'm hoping to give chef-dokku some more love over the holidays.