{"componentChunkName":"component---src-templates-blog-post-js","path":"/a-history-of-website-development-of-sofobomo-com-part-i-2/","result":{"data":{"site":{"siteMetadata":{"title":"Rope and Tire","author":"Suprada Urval"}},"markdownRemark":{"id":"4c06ff76-3b7f-59a1-8db1-0858b505bac5","excerpt":"Note: Part I here Part II : Setting up a development environment for sofobomo.com The question is, as a one-person team of sofobmo.com (until 2016 – when Matt joined me … Hi Matt!), how did I set up www.sofobomo.com, and how have I managed, updated…","html":"<p>Note: Part I <a href=\"https://ropeandtire.com/2016/09/26/a-history-of-website-development-of-sofobomo-com-part-i\">here</a></p>\n<p><strong>Part II : Setting up a development environment for <a href=\"https://www.sofobomo.com\">sofobomo.com</a></strong></p>\n<p>The question is, as a one-person team of sofobmo.com (until 2016 – when Matt joined me … <a href=\"https://loreleistudios.com\">Hi Matt</a>!), how did I set up <a href=\"http://www.sofobomo.com\">www.sofobomo.com</a>, and how have I managed, updated, made changes to SoFoBoMo till now? Why, by myself of course. The site is live on a webhost. Any changes I need to make, I make it directly on the site itself – the production environment, so to speak? Are you cringing, shuddering reading this? You should be….</p>\n<p>Crazily, until I started my job as a front end engineer, I never realized the magnitude of my mistake. No development environment, no version control, none of these safeties for my baby! (Shudder…)</p>\n<p>Back in July, when SoFoBoMo 2016 started, I vowed to myself this would change. Because Matt joined Sofobomo, and it doesn’t help a team when one person makes random changes on the website – just to try things out. And also because of the massive UI changes we need to make to the website for Sofobomo 2017 – make the site responsive, add Facebook integration, add beautiful forums, some voting scheme and other features.</p>\n<p>So I spent some time in September, setting up a development environment on my Macbook. I had, in the past tried to use the MAMP stack, but never actually got it completely functioning – mostly because I was not as motivated. This time however, I was as highly motivated as can be, and was commited to a development environment. As of writing this, the <a href=\"https://www.drupal.org/node/2183343\">Drupal official site seems to recommend</a> using Virtual Box and a pre-made Vagrant setup. I decided to try this out and use <a href=\"https://www.drupalvm.com/\">Drupal-VM</a>.</p>\n<p>The setup was super easy – following the instructions in the <a href=\"https://github.com/geerlingguy/drupal-vm#quick-start-guide\">quick start guide</a>. I downloaded my production site files, <a href=\"https://www.lullabot.com/articles/module-monday-backup-and-migrate\">downloaded the current database from the production site using the Backup and Migrate module</a>. I then downloaded and installed <a href=\"https://www.virtualbox.org/wiki/Downloads\">Virtual Box</a>, <a href=\"https://www.vagrantup.com/downloads.html\">Vagrant</a> and <a href=\"https://docs.ansible.com/ansible/intro_installation.html\">Ansible</a>. As per the <a href=\"https://docs.drupalvm.com/en/latest/deployment/local-codebase/\">instructions</a>, I made a copy and updated the config.yml file to point to my downloaded codebase (Drupal files) (and disabled installing a fresh Drupal instance). I also updated the config file with the downloaded database details, and enabled <a href=\"https://www.adminer.org/\">Adminer</a> as one of the development dependencies. Then a “vagrant up” on the command line and waiting for everything to be installed. And finally <a href=\"https://support.rackspace.com/how-to/modify-your-hosts-file/\">adding the VM IP address to my hosts file</a> and I was ready to go. Simple, easy. In fact, much easier than what I was expecting. Now, if only my shared web hosting provider would enable Drush so I can just push updates via the command line!</p>\n<p>And so, that’s how I have a development environment for <a href=\"http://www.sofobomo.com\">www.sofobomo.com</a>. Pair it with version control with Git and backup the files in bitbucket or github, and I am ready to start making changes for SoFoBoMo 2017!</p>","frontmatter":{"title":"A history of website development of sofobomo.com  Part II","date":"September 29, 2016","url":"/a-history-of-website-development-of-sofobomo-com-part-i-2/","tags":["Thoughts","web-development"]}}},"pageContext":{"slug":"/a-history-of-website-development-of-sofobomo-com-part-i-2/","previous":{"fields":{"slug":"/2016-09-26-a-history-of-website-development-of-sofobomo-com-part-i/"},"frontmatter":{"title":"A history of website development of sofobomo.com  Part I","url":"/a-history-of-website-development-of-sofobomo-com-part-i/","tags":["Thoughts","web-development"]}},"next":{"fields":{"slug":"/2016-12-13-addictive-substance/"},"frontmatter":{"title":"Addictive Substance","url":"/addictive-substance/","tags":["quotes"]}}}},"staticQueryHashes":["3128451518","426816048"]}