{"id":21572257,"url":"https://github.com/cuonggt/rubick","last_synced_at":"2026-05-17T13:07:41.992Z","repository":{"id":96131206,"uuid":"85269605","full_name":"cuonggt/rubick","owner":"cuonggt","description":"A pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install Ruby, Rails, a web server, and any other server software on your local machine.","archived":false,"fork":false,"pushed_at":"2017-03-18T06:35:49.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T06:22:06.286Z","etag":null,"topics":["development-environment","provisioning","rails","rubick","ruby","vagrant-boxes"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/cuonggt.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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-03-17T04:05:09.000Z","updated_at":"2017-03-19T00:41:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7f3c902-74f7-439b-98a5-d3b878fc76df","html_url":"https://github.com/cuonggt/rubick","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cuonggt/rubick","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuonggt%2Frubick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuonggt%2Frubick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuonggt%2Frubick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuonggt%2Frubick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuonggt","download_url":"https://codeload.github.com/cuonggt/rubick/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuonggt%2Frubick/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33139632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["development-environment","provisioning","rails","rubick","ruby","vagrant-boxes"],"created_at":"2024-11-24T11:18:44.680Z","updated_at":"2026-05-17T13:07:41.957Z","avatar_url":"https://github.com/cuonggt.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rubick\n\nThe Ruby on Rails local development environment. Thanks to [Laravel Homestead](https://github.com/laravel/homestead).\n\n- [Introduction](#introduction)\n- [Installation \u0026 Setup](#installation-and-setup)\n    - [First Steps](#first-steps)\n    - [Configuring Rubick](#configuring-rubick)\n    - [Launching The Vagrant Box](#launching-the-vagrant-box)\n    - [Installing MariaDB](#installing-mariadb)\n- [Daily Usage](#daily-usage)\n    - [Quickstart Your Rails Applications](#quickstart-your-rails-applications)\n    - [Accessing Rubick Globally](#accessing-rubick-globally)\n    - [Connecting Via SSH](#connecting-via-ssh)\n    - [Connecting To Databases](#connecting-to-databases)\n    - [Adding Additional Sites](#adding-additional-sites)\n    - [Ports](#ports)\n    - [Sharing Your Environment](#sharing-your-environment)\n- [Network Interfaces](#network-interfaces)\n- [Updating Rubick](#updating-rubick)\n- [Provider Specific Settings](#provider-specific-settings)\n    - [VirtualBox](#provider-specific-virtualbox)\n\n\u003ca name=\"introduction\"\u003e\u003c/a\u003e\n## Introduction\n\n[Vagrant](https://www.vagrantup.com) provides a simple, elegant way to manage and provision Virtual Machines.\n\nRubick is a pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install Ruby, a web server, and any other server software on your local machine. No more worrying about messing up your operating system! Vagrant boxes are completely disposable. If something goes wrong, you can destroy and re-create the box in minutes!\n\nRubick runs on any Windows, Mac, or Linux system, and includes the Nginx web server, Ruby 2.4.0, MySQL, Postgres, Redis, Memcached, Node, and all of the other goodies you need to develop amazing Ruby applications.\n\n\u003e If you are using Windows, you may need to enable hardware virtualization (VT-x). It can usually be enabled via your BIOS. If you are using Hyper-V on a UEFI system you may additionally need to disable Hyper-V in order to access VT-x.\n\n\u003ca name=\"included-software\"\u003e\u003c/a\u003e\n### Included Software\n\n- Ubuntu 16.04\n- Git\n- Ruby 2.4.0\n- Rails 5\n- Nginx\n- [Phusion Passenger](https://github.com/phusion/passenger)\n- MySQL\n- MariaDB\n- Sqlite3\n- Postgres\n- Node (With Yarn and Gulp)\n- Redis\n- Memcached\n- Mailhog\n- ngrok\n\n\u003ca name=\"installation-and-setup\"\u003e\u003c/a\u003e\n## Installation \u0026 Setup\n\n\u003ca name=\"first-steps\"\u003e\u003c/a\u003e\n### First Steps\n\nBefore launching your Rubick environment, you must install [VirtualBox 5.1](https://www.virtualbox.org/wiki/Downloads) as well as [Vagrant](https://www.vagrantup.com/downloads.html). All of these software packages provide easy-to-use visual installers for all popular operating systems.\n\n#### Installing The Rubick Vagrant Box\n\nOnce VirtualBox and Vagrant have been installed, you should add the `cuonggt/rubick` box to your Vagrant installation using the following command in your terminal. It will take a few minutes to download the box, depending on your Internet connection speed:\n\n    vagrant box add cuonggt/rubick\n\nIf this command fails, make sure your Vagrant installation is up to date.\n\n#### Installing Rubick\n\nYou may install Rubick by simply cloning the repository. Consider cloning the repository into a `Rubick` folder within your \"home\" directory, as the Rubick box will serve as the host to all of your Ruby projects:\n\n    cd ~\n\n    git clone https://github.com/cuonggt/rubick.git Rubick\n\nOnce you have cloned the Rubick repository, run the `bash init.sh` command from the Rubick directory to create the `Rubick.yaml` configuration file. The `Rubick.yaml` file will be placed in the Rubick directory:\n\n    // Mac / Linux...\n    bash init.sh\n\n    // Windows...\n    init.bat\n\n\u003ca name=\"configuring-rubick\"\u003e\u003c/a\u003e\n### Configuring Rubick\n\n#### Setting Your Provider\n\nThe `provider` key in your `Rubick.yaml` file indicates which Vagrant provider should be used: `virtualbox`. You may set this to the provider you prefer:\n\n    provider: virtualbox\n\n#### Configuring Shared Folders\n\nThe `folders` property of the `Rubick.yaml` file lists all of the folders you wish to share with your Rubick environment. As files within these folders are changed, they will be kept in sync between your local machine and the Rubick environment. You may configure as many shared folders as necessary:\n\n    folders:\n        - map: ~/Code\n          to: /home/vagrant/Code\n\nTo enable [NFS](https://www.vagrantup.com/docs/synced-folders/nfs.html), just add a simple flag to your synced folder configuration:\n\n    folders:\n        - map: ~/Code\n          to: /home/vagrant/Code\n          type: \"nfs\"\n\nYou may also pass any options supported by Vagrant's [Synced Folders](https://www.vagrantup.com/docs/synced-folders/basic_usage.html) by listing them under the `options` key:\n\n    folders:\n        - map: ~/Code\n          to: /home/vagrant/Code\n          type: \"rsync\"\n          options:\n              rsync__args: [\"--verbose\", \"--archive\", \"--delete\", \"-zz\"]\n              rsync__exclude: [\"node_modules\"]\n\n\n#### Configuring Nginx Sites\n\nNot familiar with Nginx? No problem. The `sites` property allows you to easily map a \"domain\" to a folder on your Rubick environment. A sample site configuration is included in the `Rubick.yaml` file. Again, you may add as many sites to your Rubick environment as necessary. Rubick can serve as a convenient, virtualized environment for every Rails project you are working on:\n\n    sites:\n        - map: rubick.app\n          to: /home/vagrant/Code/Rails/public\n\nIf you change the `sites` property after provisioning the Rubick box, you should re-run `vagrant reload --provision`  to update the Nginx configuration on the virtual machine.\n\n#### The Hosts File\n\nYou must add the \"domains\" for your Nginx sites to the `hosts` file on your machine. The `hosts` file will redirect requests for your Rubick sites into your Rubick machine. On Mac and Linux, this file is located at `/etc/hosts`. On Windows, it is located at `C:\\Windows\\System32\\drivers\\etc\\hosts`. The lines you add to this file will look like the following:\n\n    192.168.79.86  rubick.app\n\nMake sure the IP address listed is the one set in your `Rubick.yaml` file. Once you have added the domain to your `hosts` file and launched the Vagrant box you will be able to access the site via your web browser:\n\n    http://rubick.app\n\n\u003ca name=\"launching-the-vagrant-box\"\u003e\u003c/a\u003e\n### Launching The Vagrant Box\n\nOnce you have edited the `Rubick.yaml` to your liking, run the `vagrant up` command from your Rubick directory. Vagrant will boot the virtual machine and automatically configure your shared folders and Nginx sites.\n\nTo destroy the machine, you may use the `vagrant destroy --force` command.\n\n\u003ca name=\"installing-mariadb\"\u003e\u003c/a\u003e\n### Installing MariaDB\n\nIf you prefer to use MariaDB instead of MySQL, you may add the `mariadb` option to your `Rubick.yaml` file. This option will remove MySQL and install MariaDB. MariaDB serves as a drop-in replacement for MySQL so you should still use the `mysql` database driver in your application's database configuration:\n\n    box: cuonggt/rubick\n    ip: \"192.168.20.20\"\n    memory: 2048\n    cpus: 4\n    provider: virtualbox\n    mariadb: true\n\n\u003ca name=\"daily-usage\"\u003e\u003c/a\u003e\n## Daily Usage\n\n\u003ca name=\"quickstart-your-rails-applications\"\u003e\u003c/a\u003e\n### Quickstart Your Rails Applications\n\nTo start Rails built-in web sever [Puma](https://github.com/puma/puma), you may use the `bin/rails server -b 0.0.0.0` command. Once you have started the Rails built-in web server, you can access the site via your web browser:\n\n    http://localhost:3000\n\n\u003ca name=\"accessing-rubick-globally\"\u003e\u003c/a\u003e\n### Accessing Rubick Globally\n\nSometimes you may want to `vagrant up` your Rubick machine from anywhere on your filesystem. You can do this on Mac / Linux systems by adding a Bash function to your Bash profile. On Windows, you may accomplish this by adding a \"batch\" file to your `PATH`. These scripts will allow you to run any Vagrant command from anywhere on your system and will automatically point that command to your Rubick installation:\n\n#### Mac / Linux\n\n    function rubick() {\n        ( cd ~/Rubick \u0026\u0026 vagrant $* )\n    }\n\nMake sure to tweak the `~/Rubick` path in the function to the location of your actual Rubick installation. Once the function is installed, you may run commands like `rubick up` or `rubick ssh` from anywhere on your system.\n\n#### Windows\n\nCreate a `rubick.bat` batch file anywhere on your machine with the following contents:\n\n    @echo off\n\n    set cwd=%cd%\n    set rubickVagrant=C:\\Rubick\n\n    cd /d %rubickVagrant% \u0026\u0026 vagrant %*\n    cd /d %cwd%\n\n    set cwd=\n    set rubickVagrant=\n\nMake sure to tweak the example `C:\\Rubick` path in the script to the actual location of your Rubick installation. After creating the file, add the file location to your `PATH`. You may then run commands like `rubick up` or `rubick ssh` from anywhere on your system.\n\n\u003ca name=\"connecting-via-ssh\"\u003e\u003c/a\u003e\n### Connecting Via SSH\n\nYou can SSH into your virtual machine by issuing the `vagrant ssh` terminal command from your Rubick directory.\n\nBut, since you will probably need to SSH into your Rubick machine frequently, consider adding the \"function\" described above to your host machine to quickly SSH into the Rubick box.\n\n\u003ca name=\"connecting-to-databases\"\u003e\u003c/a\u003e\n### Connecting To Databases\n\nA `rubick` database is configured for both MySQL and Postgres out of the box.\n\nTo connect to your MySQL or Postgres database from your host machine's database client, you should connect to `127.0.0.1` and port `33060` (MySQL) or `54320` (Postgres). The username and password for both databases is `rubick` / `secret`.\n\n\u003e You should only use these non-standard ports when connecting to the databases from your host machine. You will use the default 3306 and 5432 ports in your Rails database configuration file since Rails is running _within_ the virtual machine.\n\n\u003ca name=\"adding-additional-sites\"\u003e\u003c/a\u003e\n### Adding Additional Sites\n\nOnce your Rubick environment is provisioned and running, you may want to add additional Nginx sites for your Rails applications. You can run as many Rails installations as you wish on a single Rubick environment. To add an additional site, simply add the site to your `Rubick.yaml` file:\n\n    sites:\n        - map: rubick.app\n          to: /home/vagrant/Code/Rails/public\n        - map: another.app\n          to: /home/vagrant/Code/another/public\n\nIf Vagrant is not automatically managing your \"hosts\" file, you may need to add the new site to that file as well:\n\n    192.168.79.86  rubick.app\n    192.168.79.86  another.app\n\nOnce the site has been added, run the `vagrant reload --provision` command from your Rubick directory.\n\n\u003ca name=\"ports\"\u003e\u003c/a\u003e\n### Ports\n\nBy default, the following ports are forwarded to your Rubick environment:\n\n- **SSH:** 2222 \u0026rarr; Forwards To 22\n- **HTTP:** 8000 \u0026rarr; Forwards To 80\n- **HTTPS:** 44300 \u0026rarr; Forwards To 443\n- **MySQL:** 33060 \u0026rarr; Forwards To 3306\n- **Postgres:** 54320 \u0026rarr; Forwards To 5432\n- **Mailhog:** 8025 \u0026rarr; Forwards To 8025\n- **Rails:** 3000 \u0026rarr; Forwards To 3000\n\n#### Forwarding Additional Ports\n\nIf you wish, you may forward additional ports to the Vagrant box, as well as specify their protocol:\n\n    ports:\n        - send: 93000\n          to: 9300\n        - send: 7777\n          to: 777\n          protocol: udp\n\n\u003ca name=\"sharing-your-environment\"\u003e\u003c/a\u003e\n### Sharing Your Environment\n\nSometimes you may wish to share what you're currently working on with coworkers or a  client. Vagrant has a built-in way to support this via `vagrant share`; however, this will not work if you have multiple sites configured in your `Rubick.yaml` file.\n\nTo solve this problem, Rubick includes its own `share` command. To get started, SSH into your Rubick machine via `vagrant ssh` and run `share rubick.app`. This will share the `rubick.app` site from your `Rubick.yaml` configuration file. Of course, you may substitute any of your other configured sites for `rubick.app`:\n\n    share rubick.app\n\nAfter running the command, you will see an Ngrok screen appear which contains the activity log and the publicly accessible URLs for the shared site. If you would like to specify a custom region, subdomain, or other Ngrok runtime option, you may add them to your `share` command:\n\n    share rubick.app -region=eu -subdomain=laravel\n\n\u003e Remember, Vagrant is inherently insecure and you are exposing your virtual machine to the Internet when running the `share` command.\n\n\u003ca name=\"network-interfaces\"\u003e\u003c/a\u003e\n## Network Interfaces\n\nThe `networks` property of the `Rubick.yaml` configures network interfaces for your Rubick environment. You may configure as many interfaces as necessary:\n\n    networks:\n        - type: \"private_network\"\n          ip: \"192.168.10.20\"\n\nTo enable a [bridged](https://www.vagrantup.com/docs/networking/public_network.html) interface, configure a `bridge` setting and change the network type to `public_network`:\n\n    networks:\n        - type: \"public_network\"\n          ip: \"192.168.10.20\"\n          bridge: \"en1: Wi-Fi (AirPort)\"\n\nTo enable [DHCP](https://www.vagrantup.com/docs/networking/public_network.html), just remove the `ip` option from your configuration:\n\n    networks:\n        - type: \"public_network\"\n          bridge: \"en1: Wi-Fi (AirPort)\"\n\n\u003ca name=\"updating-rubick\"\u003e\u003c/a\u003e\n## Updating Rubick\n\nYou can update Rubick in two simple steps. First, you should update the Vagrant box using the `vagrant box update` command:\n\n    vagrant box update\n\nNext, you need to update the Rubick source code. If you cloned the repository you can simply `git pull origin master` at the location you originally cloned the repository.\n\n\u003ca name=\"provider-specific-settings\"\u003e\u003c/a\u003e\n## Provider Specific Settings\n\n\u003ca name=\"provider-specific-virtualbox\"\u003e\u003c/a\u003e\n### VirtualBox\n\nBy default, Rubick configures the `natdnshostresolver` setting to `on`. This allows Rubick to use your host operating system's DNS settings. If you would like to override this behavior, add the following lines to your `Rubick.yaml` file:\n\n    provider: virtualbox\n    natdnshostresolver: off\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuonggt%2Frubick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuonggt%2Frubick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuonggt%2Frubick/lists"}