May 14, 2018

home computer

These are the tools I'm currently using for web development:

The basic workflow I follow to update this site goes like this:

  1. Go to the folder in my computer where the files for this site are located: cd Hacks/
  2. Write posts or page content in Markdown.
  3. From /Hacks/ run Metalsmith: npm start. This converts the markdown files to HTML and saves them in the /Hacks/ folder.
  4. Git commit the changes by running the following commands from the /Hacks/ folder: git add --all and git commit -m "made some changes".
  5. Push the files to Github's remote repository: git push origin master.
  6. Push the static files in the /Hacks/ folder to my Digital Ocean VPS by running ./ from the /Hacks/ folder. is a custom bash script that syncs the contents of the /Hacks/ folder in my local computer with the /var/www/ folder in my VPS. /var/www/ is the folder that Digital Ocean uses to serve this site to the open web.
  7. Open the browser, navigate to the site and check that everything looks OK. If something is off, fix it and go back to #3.


Serving This Site Over HTTPS Creating a Simple Static Site With Gulp

USA 2018About | Contact