{"id":15726784,"url":"https://github.com/danwebb/vagrant-locomotive-engine","last_synced_at":"2025-03-31T01:48:42.478Z","repository":{"id":86179302,"uuid":"80995347","full_name":"DanWebb/Vagrant-Locomotive-Engine","owner":"DanWebb","description":"Automate the installation \u0026 set up of locomotive engine.","archived":false,"fork":false,"pushed_at":"2017-02-25T08:37:25.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T07:11:54.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanWebb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-02-05T13:40:56.000Z","updated_at":"2017-02-05T13:45:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"e97946ce-5fd2-47e5-9581-50eaf3b41357","html_url":"https://github.com/DanWebb/Vagrant-Locomotive-Engine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanWebb%2FVagrant-Locomotive-Engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanWebb%2FVagrant-Locomotive-Engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanWebb%2FVagrant-Locomotive-Engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanWebb%2FVagrant-Locomotive-Engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanWebb","download_url":"https://codeload.github.com/DanWebb/Vagrant-Locomotive-Engine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246403896,"owners_count":20771526,"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","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":"2024-10-03T22:40:35.566Z","updated_at":"2025-03-31T01:48:42.435Z","avatar_url":"https://github.com/DanWebb.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vagrant Locomotive Engine\nA [Vagrant](https://www.vagrantup.com/) configuration to run [Locomotive Engine](https://github.com/locomotivecms/engine). The provision (setup.sh) file may also be used to get locomotive engine running on servers outside of Vagrant.\n\n## Getting Started\n\nVagrant Locomotive Engine requires recent versions of both [Vagrant](https://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/) to be installed.\n\nOnce Vagrant and VirtualBox are installed, download or clone this repository. You should then configure the provider settings in the `Vagrantfile` to match your environment and run `vagrant up` to automatically build and provision a virtualized Ubuntu server running nginx \u0026 locomotive engine.\n\n## Provisioning\n\nThe setup.sh file will be used to set up and install all the required dependancies to run Locomotive Engine, It may be edited to suit preferences or the environment. setup.sh will automatically be run on the first `vagrant up`.\n\n### Re-provision\n\nIf you wish to change the provision after already using `vagrant up` you may use `vagrant reload --provision` to run setup.sh once again.\n\n### External Server (non vagrant)\n\nAs mentioned above the provision (setup.sh) file can be used outside of vagrant. If you wish to use this for a production environment it is recommended that you...\n\n1. Review the contents of the setup.sh file\n2. Set your own secret keys\n3. Set the number of workers to match your servers cpu cores\n4. Change mentions of the vagrant user to your own user\n5. Run the commands under your own user manually one by one to make sure to fix any individual errors specific to your system as they appear.\n\n### Common issues\n\n#### Upstart\nIf you get the error “Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused“ when running `start puma-manager` it likely means you're running Ubuntu 15.04 or higher which uses systemd instead of upstart. To return to using upstart you can run\n```\nsudo apt-get install upstart-sysv\nsudo update-initramfs -u\nreboot\n```\n\n### nokogiri\nIf nokogiri isn't installing try `gem install nokogiri -v 1.6.8.1 -- --use-system-libraries`\n\n### ExecJS\nIf you get the error `ExecJS::RuntimeError: (execjs):1 during assets:precompile` try running `node -v`. If this returns \"The program 'node' is currently not installed.\" then run:\n```\nsudo apt-get install python-software-properties\ncurl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -\nsudo apt-get install nodejs\n```\n`node -v` should then return your node version.\n\nIf there's still issues try using sudo i.e. `RAILS_ENV=production sudo bundle exec rake assets:precompile`\n\n### Assets failing to load\nIn config/environments/production.rb set `config.serve_static_files` to true.\n\n### Site not found \\\\[Domain]\nIf setting up a site with a domain remove the backslashes from the virtual host at /etc/nginx/sites-available/default\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwebb%2Fvagrant-locomotive-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanwebb%2Fvagrant-locomotive-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwebb%2Fvagrant-locomotive-engine/lists"}