I Deployed My Go Backend to a Real VPS. Here's Exactly What Happened.
The article details the author's experience deploying a Go backend to a VPS. It outlines the steps taken, including setting up Docker and addressing memory constraints during the build process. The author shares insights on configuring the environment and overcoming challenges faced during deployment.
- ▪The author completed a Go backend with features like JWT authentication, PostgreSQL, and Redis caching.
- ▪The deployment was done on Oracle Cloud's free tier, which provided sufficient disk space but had memory limitations.
- ▪The author encountered an out-of-memory issue during the Docker image build, which was resolved by adding swap space.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 1904340) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Abhishek Sharma Posted on May 29 I Deployed My Go Backend to a Real VPS. Here's Exactly What Happened. #go #docker #devops #buildinpublic Learning Go in Public (15 Part Series) 1 Why I Decided to Learn Go — And What My First Commit Looked Like 2 I Stopped Watching Tutorials and Started Building a REST API in Go ... 11 more parts...
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).