![]() Before you can run the server you will need to install or update required gems with bundle install. In the virtual machine, change to the Markus directory. If you are using RubyMine then you should jump down to the set up instructions for RubyMine below before proceeding to the next step. We have found it more effective to work with files locally using RubyMine and deploy/upload to the vagrant box when you want to try things out. If you do want to enable shared folders, you can check out that vagrant documentation. NOTE: It is possible to set up the virtual machine to share folders with the host machine, but in our experience, this is too slow to be a good work environment, and sometimes doesn't work at all. ![]() Note: On Windows you may find that you need to put the private key in the same directory as the Vagrantfile. ABSOLUTE_PATH is the path to your private key (E.g. Then open the VagrantFile on your local machine and add _key_path = "ABSOLUTE_PATH" directly under config.vm.box = markusproject/ubuntu. (If it asks you for a password for vagrant, the password is "vagrant".) To avoid having to enter a password each time, and to use RubyMine, set up a public private key pair, and copy the public key to ~/.ssh/authorized_keys on the vagrant vm. Next, run vagrant ssh to connect to the virtual machine. Check your internet connection attempt to limit network activity to vagrant up. NOTE: If, for some reason, it fails and complains about SSH, you most likely have timed out. When the download is complete, VirtualBox will run the box in headless mode. This box has GNOME, postgres, subversion, and all of MarkUs’s other dependencies installed. ![]() This will download a fairly large (3GB) Debian box from the internet, so go take a walk or something. cd to the repo (make sure you’re in the right directory - it should contain the Vagrantfile).(This is a document you will want to read very carefully and may come back to.) Clone the Markus repo from GitHub by following the instructions in Setting up Git and MarkUs.If you want to get started on working on MarkUs quickly and painlessly, this is the way to do it. ![]() Setting up your Development Environment via Vagrant Downloading and Installing ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |