This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a local .env file with the following 4 properties: | |
# | |
# MYSQL_DATABASE=<something> | |
# MYSQL_USER=<something> | |
# MYSQL_PASSWORD=<something> | |
# MYSQL_ROOT_PASSWORD=<something> | |
# | |
# Note: I have had a LOT of issues working with anything newer then Docker Desktop v4.26.1 | |
# If you're on something newer, then double check against this release. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
***Simple and stripped down version of this post: https://www.coderrocketfuel.com/article/how-to-deploy-a-next-js-website-to-a-digital-ocean-server *** | |
1. Create a New Droplet On DigitalOcean | |
a) In the first section, select the Ubuntu operating system for your server | |
b) In the "Authentication" section, make sure the "Password" option is selected and enter a strong root password for your server. | |
2. Access Server Using Root | |
a) ssh root@server_ip_address (connect to server from terminal) | |
3. Add user (OPTIONAL) |
- Linux - be proficient using Ubuntu for example and the CLI and understand how the shell works, what are environment variables, subshells, processes/tasks, etc...
- Docker (and docker-compose) - what are containers and how they work (conceptually) and how to create and run ones
- Git - what does version control system mean and how to use Git
- RDB (relational databases) - what are relational databases, and understand tables, how to create them and make relations between them as needed... also understand that through SQLite and PostgreSQL (preferred) or MySQL
- Python - how to write python very well and understand its [OOP] implementation...
- Virtualenv - And how to create virtual environments for python to isolate it from the system's installed version...
- Virtualenvwrapper to manage virtual environments easily