netlify / ask-netlify

A place to submit questions for Netlify to answer in tutorials, podcasts and blog posts
https://ask.netlify.com
32 stars 8 forks source link

Configuring different test environments #14

Closed tmhn closed 5 years ago

tmhn commented 5 years ago

About me

My question in a little more detail

What I really want to ask is...

Is there a way to have a test environment that I can deploy to, then having validated that, I can then progress the app onto LIVE.

Also, is there a way to generate a build status README badge that I can drop into the README on my GitHub project?

Anything other comments for Netlify

I've been amazed by great Netlify is, so glad I started using it!

philhawksworth commented 5 years ago

Thanks for the question @tmhn!

We'll answer this more fully in an upcoming recording, but for the moment, I think what you are looking for is our branch deploys option.

By creating a branch in your github repo, and telling Netlify to build that( or all branches), you can have Netlify deploy different versions of site onto a subdomain which matches your branch name.

Each branch effectively becomes its own "as production" environment and is the perfect way to create staging, testing, etc environments.

Merging your branch to master then deploys to production.

You can also use deploy previews in a similar way to deploy pull requests and review them before deciding whether or not to merge them to your master branch.

More info in the docs for branch and deploy previews

Interesting idea about having a build status readme badge. I wonder if we could easily use the API to drive those. I'll think about that a little!

philhawksworth commented 5 years ago

Answered in Ep2 - coming soon: https://ask.netlify.com/episode/02/