question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Ability to change which branch config.yml is grabbed from

See original GitHub issue

Is your feature request related to a problem? Please describe. When doing development work, there is the problem that NetlifyCMS grabs the config.yml file from the production branch instead of the dev branch. This makes development for the config really hard, as I have to work on the production branch which is meant to be used for the production version of the website.

Describe the solution you’d like It would be great if CMS grabbed the current branch from the netlify branch deploy. Currently i have netlify make a branch deploy to dev.example.com and a production deploy to example.com. If netlify CMS talked to netlify about what branch it was on, and then grabbed the corresponding config.yml file from the repo this would be much easier. Another solution may be to have a <meta> tag you can add to the index.html to tell netlify CMS what branch to get the config file from?

Describe alternatives you’ve considered I have considered having another repo for development, but this just adds another layer of difficulty.

Additional context May be related to #770

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
theS1LV3Rcommented, Nov 9, 2019

Seems the problem was that i hadn’t configured stuff properly. Closing now

0reactions
theS1LV3Rcommented, Nov 9, 2019

Yea, for me i always get the same config.yml. I’ll make a new site now, just to test how it works, and to see if there is a bug on my end

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring CircleCI
The branches key controls whether the current branch should have a schedule trigger created for it, where current branch is the branch containing...
Read more >
Allow bitrise.yml to be pulled from project source code
A point against doing this as a bitrise provided git repository: the ability to be able to send Pull Requests for configuration changes...
Read more >
Configure bitbucket-pipelines.yml - Atlassian Support
Learn how to configure the bitbucket-pipelines.yml file. ... want them all to only run on pull requests, replace the keyword branches with pull-requests....
Read more >
Apply changes from one Git branch to another - JetBrains
In Git, there are several ways to integrate changes from one branch into another: Merge branches · Rebase branches.
Read more >
Your configuration specifies to merge with the <branch name ...
Your Git takes each of these branch names and changes it ... ID was found under the name refs/heads/feature/Sprint4/ABC-123-Branch .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found