{"id":24911559,"url":"https://github.com/hackoregon/cropcompass-vagrant","last_synced_at":"2025-10-11T09:08:03.533Z","repository":{"id":77886594,"uuid":"58994082","full_name":"hackoregon/cropcompass-vagrant","owner":"hackoregon","description":"Crop Compass Vagrant box","archived":false,"fork":false,"pushed_at":"2016-06-23T02:37:35.000Z","size":731,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-07-05T09:26:04.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hackoregon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-17T05:50:09.000Z","updated_at":"2016-06-15T06:09:37.000Z","dependencies_parsed_at":"2023-03-09T00:00:17.433Z","dependency_job_id":null,"html_url":"https://github.com/hackoregon/cropcompass-vagrant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hackoregon/cropcompass-vagrant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fcropcompass-vagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fcropcompass-vagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fcropcompass-vagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fcropcompass-vagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackoregon","download_url":"https://codeload.github.com/hackoregon/cropcompass-vagrant/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fcropcompass-vagrant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006755,"owners_count":26084176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-02T04:20:57.092Z","updated_at":"2025-10-11T09:08:03.492Z","avatar_url":"https://github.com/hackoregon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HackOregon Crop Compass Vagrant Environment\n\n0. Find a place with wall power and reliable network connectivity.\n1. Install git, Vagrant and VirtualBox on your host machine.\n2. If you need to make changes to the code, you'll need SSH keys on Github. See \u003chttps://help.github.com/categories/ssh/\u003e for the setup details.\n\n    Note that on Windows, some versions of Git will convert the line endings of text files from Unix (LF only) to DOS/Windows (CR-LF) format. If your Git does this, the Vagrant provisioning step will die a horrible death. Make sure your Git is configured to not modify any line endings.\n3. If you don't need to make changes to the code, do\n\n    ```\n    git clone https://github.com/hackoregon/cropcompass-vagrant\n    cd cropcompass-vagrant\n    git checkout master\n    ```\n    \n    If you ***do*** need to make changes to the code, clone it with \n    ```\n    git clone git@github.com:hackoregon/cropcompass-vagrant\n    cd cropcompass-vagrant\n    git checkout master\n    ```\n    \n3. On Windows, do `.\\build.bat`. On MacOS or Linux, do `./build.bat`.\n\nThis will take some time. If anything croaks, do a `vagrant ssh`. You can see all the log files in `~/logs`.\n\nWhen the scripts finish, the Crop Compass Django app will be running. Browse to \u003chttp://localhost:8000\u003e to test it. Also, do a `vagrant ssh`. The first time, you will see\n\n```\n$ vagrant ssh\n\n[ stuff deleted ]\n\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/premkproject\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/postmkproject\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/initialize\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/premkvirtualenv\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/postmkvirtualenv\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/prermvirtualenv\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/postrmvirtualenv\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/predeactivate\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/postdeactivate\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/preactivate\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/postactivate\nvirtualenvwrapper.user_scripts creating /home/vagrant/Env/get_env_details\nvagrant@ubuntu:~$ \n```\n\nThe `virtualenvwrapper` lines will only appear the first time you `vagrant ssh` into the box. There is only one Python virtual environment - to activate it type `workon cropcompass`. See \u003chttps://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-14-04\u003e for the details on the nginx / uWSGI configuration if you need to change anything.\n\nTo check whether the server is running, type `vagrant global-status` on the host. To stop the server, type `vagrant halt`. To start it again type `vagrant up`. To reboot it type `vagrant reload`.\n\n## Operational notes\n`vagrant global-status` will list all the boxes and what they're doing.\n\nNote that if a box is running when you shut down or reboot your host, Vagrant may or may not save it cleanly and may or may not restart it when the host comes back up. To be safe, do a `vagrant halt` before shutting down or rebooting the host and a `vagrant up` after bringing the host back up.\n\n## Troubleshooting\n1. `vagrant ssh`. This will log you into the box as \"vagrant\".\n2. `workon cropcompass`. This will activate the Crop Compass virtual environment.\n3. The log files are in `~/logs`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackoregon%2Fcropcompass-vagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackoregon%2Fcropcompass-vagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackoregon%2Fcropcompass-vagrant/lists"}