Search code examples
githerokubitbucketproductionstaging

How to test new feature in development server


I'm new to web development and I'm struggling to understand how I can test new features added by other people to my web application before pushing the commit to the site.

My web application uses heroku and bitbucket. So far, only one person at a time has been working on the site and I push the commits to heroku master to see the changes.

But now, I want to test a new feature which a freelancer has added to my web application BEFORE pushing the commits to heroku master.

How do I do this?

I found that I need to first set up a "staging" or "production" server on heroku so I forked my app, and set up a heroku remote, so now I have two identical apps on heroku.

The next part is what I don't understand, how can I see the changes which are commited by the freelancer in bitbucket but only in the forked app so it doesnt affect the app which is live.

here is what my sourcetree looks like:

enter image description here

Hope this makes sense and I apologise is any of the terms are used incorrectly.

Here is


Solution

  • What you're probably looking for is Heroku Pipelines which allow you to have several environments representing different branches of the same codebase.