Skip to content

Instantly share code, notes, and snippets.

View rmiyazaki6499's full-sized avatar
🐉
飛べ

Ryuichi Miyazaki rmiyazaki6499

🐉
飛べ
View GitHub Profile
@bradtraversy
bradtraversy / django_deploy.md
Last active September 26, 2024 19:02
Django Deployment - Digital Ocean

Django Deployment to Ubuntu 18.04

In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc

Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server

Create A Digital Ocean Droplet

Use this link and get $10 free. Just select the $5 plan unless this a production app.

@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote