April 14, 2019
These are the tools I'm currently using for web development:
- Computer: Toshiba Satellite C55. 4Gb of RAM. Intel Celeron N2830 dual core processor. It's a little underpowered, but it was cheap (~$250) and does the trick for now.
- Operating System: Ubuntu 18.04 LTS. I also enabled a second partition to run Windows 10 just in case I needed (never, so far).
- Responsive Framework: Custom CSS: minimal.css.
- Version Control: Git and Github.
- Text Editor: Visual Studio Code.
- Hosting: Nginx virtual private server running on an Ubuntu 16.04 droplet at Digital Ocean (referral link).
- Email Client: Thunderbird with Enigmail (for encryption).
- SSL/TLS Certificate by Let's Encrypt, to serve this site through HTTPS.
The basic workflow I follow to update this site goes like this:
- Go to the folder in my computer where the files for this site are located:
- Write posts or page content in Markdown.
npm start. This converts the markdown files to HTML and saves them in the
- Git commit the changes by running the following commands from the
git add --alland
git commit -m "made some changes".
- Push the files to Github's remote repository:
git push origin master.
- Push the static files in the
/Websites/mariosanchez.org/publicfolder to my Digital Ocean VPS by running
deploy.shis a custom bash script that syncs the contents of the
/Websites/mariosanchez.org/publicfolder in my local computer with the
/var/www/mariosanchez.org/htmlfolder in my VPS.
/var/www/mariosanchez.org/htmlis the folder that Digital Ocean uses to serve this site to the open web.
- Open the browser, navigate to the site and check that everything looks OK. If something is off, fix it and go back to #3.