On-premise in two weeks
The problem
A big customer asked Upsolve AI to run its cloud SaaS inside their own infrastructure. It was a good way for the company to move forward, but the platform had only ever run in the cloud.
I joined as a principal engineer on contract and worked closely with the CTO on the plan. The stack was Next.js and React on the front, Node.js and Python behind it, and Supabase with PostgreSQL for data.
First steps
I mapped the data layer to see which parts depended on which databases, packaged the system in Docker containers so it could start on a clean machine, and talked to the customer's team about their environment.
The cloud version was wired to its hosted database, so the first real job was to make that connection configurable without breaking the cloud product.
Trade-offs
Three tensions shaped the work: keeping the cloud and on-premise versions in sync, two weeks against completeness, and the risk of moving customer data. I made the data layer point at another database dynamically, wrote migration strategies and maintenance commands, and added SQL import and export for on-premise clients.
I also restructured the UI layer to talk to the new data layer, which helped keep the cloud and on-premise versions in step. Everything shipped with documentation, so the customer's team could run it without us.
Result
I delivered documented, containerised on-premise applications in two weeks. The customer accepted the build, and it led to follow-on work.

