{"id":16314804,"url":"https://github.com/forecho/vagrant-ubuntu-rails","last_synced_at":"2026-05-05T21:32:06.793Z","repository":{"id":147509798,"uuid":"124497459","full_name":"forecho/vagrant-ubuntu-rails","owner":"forecho","description":"打造 Vagrant Ruby On Rails 开发环境","archived":false,"fork":false,"pushed_at":"2018-03-12T02:47:44.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T16:55:48.031Z","etag":null,"topics":["ruby-on-rails","vagrant","vagrantfile"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/forecho.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":"2018-03-09T06:24:38.000Z","updated_at":"2018-03-09T08:57:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab9b96ea-02a0-4e0f-b4ff-afa1c3140ffe","html_url":"https://github.com/forecho/vagrant-ubuntu-rails","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"a3d307b1f9d3e991ab6c05beaa257c6fb15fde3c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fvagrant-ubuntu-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fvagrant-ubuntu-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fvagrant-ubuntu-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fvagrant-ubuntu-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forecho","download_url":"https://codeload.github.com/forecho/vagrant-ubuntu-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251302749,"owners_count":21567599,"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":["ruby-on-rails","vagrant","vagrantfile"],"created_at":"2024-10-10T21:55:19.093Z","updated_at":"2026-05-05T21:32:01.768Z","avatar_url":"https://github.com/forecho.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"打造 Vagrant Ruby On Rails 开发环境\n================\n\n## 包括以下环境和软件：\n\n- Ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]\n- Mysql 5.5.59（mysql -V）\n- Rails 5.1.5\n- git 1.9.1\n- [autojump](https://github.com/joelthelion/autojump)\n- vim 7.4.52\n- nodejs v0.10.25\n\n## Box地址\n\n链接: http://pan.baidu.com/s/1nt1hDMD 密码: ckg4\n\n\n## 如何搭建\n\n先安装好 VirtualBox 和 vagrant 软件，推荐使用版本（上面的百度盘链接里面有提供以下 Windows7 版本）：\n\n - VirtualBox-4.3.10-93012-Win\n - vagrant_1.7.4\n \n下载 ubuntu_trusty_64.box, 执行以下命令添加刚才下载好的 box 到 Box list：\n\n```sh\n// cd 下载 box 目录\n// vagrant box add 名称 路径\nvagrant box add trusty64 ubuntu_trusty_64.box\n\nvagrant box list // 查看\nmkdir ubuntu // 创建文件夹\ngit clone https://github.com/forecho/vagrant-ubuntu-rails.git rails\ncd rails\n```\n然后启动 vagrant\n\n```\nvagrant up\n```\n\n最后你可以愉快的时候 Xshell 工具 SSH 连接了。\n\n```\nIP：192.168.33.20\n端口：22\n用户名：vagrant\n密码：vagrant\n```\n\n连接之后切换 root 用户：\n\n```\nsudo su // 不需要输入密码\n```\n\n## 关于MySQL\n\n默认用户名：root\n\n默认密码：root\n\n\n## 关于一些常用的命令\n\n**MySQL**\n\n- 重启\n```sh\nsudo service mysql restart\n```\n\n## 常见问题\n\n\n## 参考文档\n\n- [路径（七）：用 Vagrant 管理虚拟机](http://ninghao.net/blog/2077)\n- [1.2 Vagrant安装配置](https://github.com/astaxie/Go-in-Action/blob/master/ebook/zh/01.2.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforecho%2Fvagrant-ubuntu-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforecho%2Fvagrant-ubuntu-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforecho%2Fvagrant-ubuntu-rails/lists"}