Advice on techniques for deploying to production

I have a glitch app attached to a live client site. I also have the development version of this app (with new features in development), also on glitch as a different project.

Working on the production, live code in glitch can (and has) caused headaches for the users of the production environment, so I’ve moved to two environments…

To promote my development, work-in-progress version, to the live version, I do this :

  • code and test in the glitch project A
  • export project A to ‘develop’ branch at github.com
  • visit github.com and do a new pull request from ‘develop’ branch to ‘master’
  • go to the live app B at glitch
  • import from ‘master’ branch at github to the production app B at glitch.

This works, and forces me to carefully consider regression tests, database changes and code quality before deploying to production, but it does seem a bit clunky.

Can anyone suggest a cleaner and less manual way to do this ?

thanks --doug

Hi Doug

I was working on a similar workflow as you described, my setup was a glitch project that was cloned from a github repository with a master and development branch which would serve from the master branch, I then remixed the project and then within that project I went into the command console and switched to the development branch by checking it out that would make the glitch project serve from that branch. Which left me with two glitch projects one serving the master branch and the other from the development branch giving both branches a preview version of latest developments and production state.

I would work in the development version and then push to github when I was ready to update the production version. You would then do a pull request on the master branch and pull in the development changes, then from the production version of the glitch project you would pull from github.

I did feel much like yourself that it was getting a bit clunky and switching between projects . Not sure if you have any build step to your workflow. I was using firebase as the final hosting site and my project has a build step which would create a folder to deploy to firebase. Which I would build from the master branch. I found this site netlify which does the build step from github and serves the result from a project-name.netlify.com address. I’m now thinking I can just work from the glitch development branch and have netlify reflect the master branch version and will automatically update when i push and merge the development branch.

I guess that’s my workflow at the moment also using vscode with the glitch extension which works great but having an issue with running high on memory which makes it a bit sluggish. Maybe need a new computer.

not sure if this helps much, still kinda tweaking myself…

Kevin.

1 Like