{"id":20100802,"url":"https://github.com/gramidt/my-rails-dev-box","last_synced_at":"2025-05-06T06:32:39.690Z","repository":{"id":96996014,"uuid":"13944278","full_name":"gramidt/my-rails-dev-box","owner":"gramidt","description":"My rails development box. ","archived":false,"fork":false,"pushed_at":"2015-11-19T22:28:54.000Z","size":714,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-03-02T10:36:12.244Z","etag":null,"topics":["development-environment","rails","ruby","vagrant"],"latest_commit_sha":null,"homepage":"https://github.com/granvilleschmidt/my-rails-dev-box","language":"HTML","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/gramidt.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}},"created_at":"2013-10-29T02:09:49.000Z","updated_at":"2023-03-09T16:52:27.368Z","dependencies_parsed_at":"2023-03-09T17:00:43.193Z","dependency_job_id":null,"html_url":"https://github.com/gramidt/my-rails-dev-box","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gramidt%2Fmy-rails-dev-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gramidt%2Fmy-rails-dev-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gramidt%2Fmy-rails-dev-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gramidt%2Fmy-rails-dev-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gramidt","download_url":"https://codeload.github.com/gramidt/my-rails-dev-box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224490625,"owners_count":17319983,"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":["development-environment","rails","ruby","vagrant"],"created_at":"2024-11-13T17:17:08.143Z","updated_at":"2024-11-13T17:17:08.656Z","avatar_url":"https://github.com/gramidt.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# No longer supported. Long live Docker!\n\n# A Virtual Machine to Jump Start Your Ruby on Rails Development\n\n## What's in this magical box?\n\nRuby / Rails\n* RVM\n* Ruby 2.0.0, 2.1.0, \u0026 2.2.0\n* Bundler\n\nSource Control\n* Git\n\nDatabases\n* SQLite\n* MySQL\n* PostgreSQL (9.1)\n* MongoDB\n\nCaching\n* Redis (2.6.5)\n\nMisc.\n* Qt\n* MailCatcher\n\n## What are the requirements to get up and running?\n\n* [VirtualBox] (https://www.virtualbox.org)\n\n* [Vagrant 1.1+] (http://vagrantup.com)\n\n## So the prerequisites are installed, how do I get started?\n\n    host $ git clone https://github.com/granvilleschmidt/my-rails-dev-box.git\n    host $ cd my-rails-dev-box\n    host $ vagrant up\n\nBOOM! Everything is now ready for development. Magic right?\n\nNote: It may take upwards of a few minutes the first time you\nrun 'vagrant up', since it will need to download the base box.\n\nAfter the installation has finished, you can access the magical box with\n\n    host $ vagrant ssh\n    Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)\n    ...\n    vagrant@my-rails-dev-box:/vagrant/projects$\n\nGiven that port 3000 is the default port for new Rails apps, we went ahead and forwarded that port to the magical box, so you can access your web applications from your host machine.\n\nNOTICE: If you are using Rails 4.2 and greater, you need to use _rails s -b 0.0.0.0_ to start the server, as the Rails 4.2 changed the listening address default from 0.0.0.0 to localhost.\n\n## This seems like voodoo. How do you expect me to work on a magical box from my host machine?\n\nWell it turns out that Vagrant mounts the my-rails-dev-box directory as _/vagrant_ within the magical box. So with a little additional black  magic (aka. one liner bash script), you can\njust start working directly out of the current directory which happens to be _/vagrant/projects_ after running _vagrant ssh_.\n\n## Additional Notes\n\nMailCatcher\n\nAdd the following to your 'environment/development.rb', and MailCatcher will catch any\noutgoing mail.\n\n    config.action_mailer.delivery_method = :smtp\n    config.action_mailer.smtp_settings = { :address =\u003e \"localhost\", :port =\u003e 1025 }\n\nThen all you have to do is run _mailcatcher --ip=0.0.0.0_, and you can access the application at  _http://localhost:1080_.\n\nPostgreSQL\n\n    # login\n    sudo -u postgres psql postgres\n\n    # create user\n    sudo -u postgres createuser -s \u003cusername\u003e\n\n    # set password\n    ALTER USER \u003cusername\u003e WITH PASSWORD ‘\u003cnewpassword\u003e’;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgramidt%2Fmy-rails-dev-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgramidt%2Fmy-rails-dev-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgramidt%2Fmy-rails-dev-box/lists"}