Lurker News
I am still frustrated with the amount of incidental complexity required whenever I want to do this. My latest attempt was to use a Digital Ocean droplet with Django pre-installed. I guess the biggest issue there was setting up something so that I could easily deploy my local version to the droplet (ended up using git/Github), and ensuring those two environments were in sync. I looked into Docker in some detail about a year ago, and I think it's the only pretty good solution for this I've come across—but there's a steep up front cost in learning/setup etc. (or so it seems).

What services and technologies do you use when you'd like to quickly build a web app which may never be more than a prototype, but may also turn into something real? A big aspect of what I'm wondering is about automatically setting something up for keeping local/production environments in sync, quickly deploying to production, and not having to mess with a bunch of server configuration things, user accounts, security, etc.

Comments (558) 189 threads

Show all comments

Showing thread 7 of 189

amingilani1 reply#
Oh man, do I love this question.

For the stack, Ruby on Rails with React.
But my secret sauce is the DevOps:
+ GitLab
+ GitLab CI
+ Heroku
+ Git + Git tags
I also add some magic npm scripts to take care of semver tagging. And with my build:
+ All pushes are tested
+ All changes to master are tested and deployed to staging
+ All semver tagged commits are tested and deployed to production
+ Also, all database migrations happen automatically.
I documented my entire process by building and deploying a sample app here: https://www.toptal.com/devops/effective-ci-cd-deployment-pip...

ai_ia1 reply#
Can you give me a resource to get started with devops. I have only heard these ideas, but don't have any clue why at all they are required.
rhizome311 reply#
The idea is to automate repetitive tasks as much as you can because doing them by hand takes time and is error-prone. Build, deployment and testing are tasks that are well suited to automation.
amingilani#
This!

I started by automating things that would take too long. At first it was taking code from my repository and deploying it to Heroku. Then I discovered that CI services literally gave you servers to run scripts on to interact with your code after a git push, so I started running tests in these servers.
Fast forward a few years and I automated everything except writing and maintaining the codebase.
I even run linting tests in CI so no badly written code can even make it to code review.