- Follow the 1-click install method and choose the 1GB droplet per the instructions. We'll resize it down to 512MB soon.
- Once you've logged in for the first time, follow the 502 Bad Gateway Error instructions. I've copied the instructions below for reference.
- Shut down your droplet and resize it to 512MB!
The quick fix is to run the following:
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024k
sudo mkswap /swapfile
sudo swapon /swapfile
Your swapfile is now running and active, but to set it so that it's activated on each boot we need to edit /etc/fstab:
sudo nano /etc/fstab
Paste the following onto the bottom of the file:
/swapfile none swap sw 0 0
Now restart your VPS:
sudo restart
Wait a minute or two for your VPS to reboot, and then try GitLab again. If it doesn't work the first time, refresh the Bad Gateway page a couple of times, and you should soon see the GitLab login page.