Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huobazi/ruby-china-dev-box
A virtual machine for Ruby-China.org development
https://github.com/huobazi/ruby-china-dev-box
Last synced: 6 days ago
JSON representation
A virtual machine for Ruby-China.org development
- Host: GitHub
- URL: https://github.com/huobazi/ruby-china-dev-box
- Owner: huobazi
- License: other
- Created: 2015-07-05T10:52:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-30T01:10:06.000Z (almost 8 years ago)
- Last Synced: 2023-03-22T17:18:23.580Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ruby-China-Dev-Box
A virtual machine for Ruby-China.org development## Requirements
* [VirtualBox](https://www.virtualbox.org)
* [Vagrant](http://vagrantup.com)
## Recommended Workflow
Building the virtual machine:
```bash
host $ git clone https://github.com/huobazi/ruby-china-dev-box
host $ cd ruby-china-dev-box
host $ vagrant plugin install vagrant-winnfsd
host $ vagrant up```
After the installation has finished, clone your ruby-china repo to the box
```bash
host $ git clone [email protected]:/ruby-china.git
```
Then access the virtual machine with
```bash
host $ vagrant ssh
```
Install your ruby-china code in the VM
```
Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-55-generic x86_64)
...
vagrant@ruby-china-dev-box:~$
vagrant@ruby-china-dev-box:~$ cd /vagrant/ruby-china
vagrant@ruby-china-dev-box:~$ ruby ./bin/setup
```You will see
```bash
Checking Package Dependencies...
--------------------------------------------------------------------------------
MongoDB 2.0+ [Yes]
Redis 2.0+ [Yes]
Memcached 1.4+ [Yes]
ImageMagick 6.5+ [Yes]
--------------------------------------------------------------------------------Installing dependencies
--------------------------------------------------------------------------------
The Gemfile's dependencies are satisfied
--------------------------------------------------------------------------------Configure
--------------------------------------------------------------------------------
Your MongoDB host (default: 127.0.0.1:27017):
Your Redis host (default: 127.0.0.1:6379):
--------------------------------------------------------------------------------Seed default data... [Done]
== Removing old logs and tempfiles ==
Ruby China Successfully Installed.
```
Then start the rails server```
vagrant@ruby-china-dev-box:~$ rails s -b 0.0.0.0
```
Open your browser and visit [http://localhost:3000](http://localhost:3000)## Virtual Machine Management
Visit the [Vagrant documentation](http://docs.vagrantup.com/v2/) for more information on Vagrant.
## Credits
Based on [rails-dev-box](https://github.com/rails/rails-dev-box) by Xavier Noria
## License
Released under The MIT License (MIT).
Original work Copyright (c) 2012-ω Xavier Noria
Modified work Copyright (c) 2015 Marble Wu