{"id":13778456,"url":"https://github.com/apontini/mina-proteus","last_synced_at":"2026-05-18T03:03:52.147Z","repository":{"id":56883748,"uuid":"187007967","full_name":"apontini/mina-proteus","owner":"apontini","description":"support for multiple apps and multiple stages for Mina using Hanami ruby framework","archived":false,"fork":false,"pushed_at":"2019-06-13T14:40:22.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-29T09:42:25.539Z","etag":null,"topics":["deploy","hanami","mina","multiapp","multienvironment","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/mina-proteus","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/apontini.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}},"created_at":"2019-05-16T10:43:07.000Z","updated_at":"2019-06-13T14:40:24.000Z","dependencies_parsed_at":"2022-08-20T23:40:22.392Z","dependency_job_id":null,"html_url":"https://github.com/apontini/mina-proteus","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/apontini%2Fmina-proteus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apontini%2Fmina-proteus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apontini%2Fmina-proteus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apontini%2Fmina-proteus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apontini","download_url":"https://codeload.github.com/apontini/mina-proteus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225048939,"owners_count":17412898,"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":["deploy","hanami","mina","multiapp","multienvironment","ruby"],"created_at":"2024-08-03T18:00:53.955Z","updated_at":"2025-09-29T18:28:44.021Z","avatar_url":"https://github.com/apontini.png","language":"Ruby","funding_links":[],"categories":["Hanami Gem List"],"sub_categories":["Deploy"],"readme":"[![Gem Version](https://badge.fury.io/rb/mina-proteus.svg)](https://badge.fury.io/rb/mina-proteus)  ![Gem](https://img.shields.io/gem/dt/mina-proteus.svg?color=brightgreen)\n\n# Mina::Proteus\n\nPlugin for Mina that adds support for multiple stages and multiple apps to Mina, specifically built for [Hanami ruby framework](https://hanamirb.org/).\nThis gem is based on [endoze's mina-multistage gem](https://github.com/endoze/mina-multistage), huge thanks to him!\n\n## Installation \u0026 Usage\n\nAdd this line to your application's Gemfile:\n\n```rb\ngem 'mina-proteus', require: false\n```\n\nAnd then execute:\n\n```shell\n$ bundle install\n```\n\nOr install it yourself as:\n\n```shell\n$ gem install mina-proteus\n```\n\nRequire `mina/proteus` in your `config/deploy.rb`:\n\n```rb\n# config/deploy.rb\n\nrequire 'mina/proteus'\nrequire 'mina/bundler'\nrequire 'mina/git'\n\n...\n\ntask setup: do\n  ...\nend\n\ndesc 'Deploys the current version to the server.'\ntask deploy:  do\n  ...\nend\n```\nYou then need to specify your hanami apps like this:\n\n```rb\n# config/deploy.rb\n\nset :hanami_apps, %w(app1 app2 app3)\n```\n\nThat's the only required parameter, optional parameters are:\n\n```rb\n# config/deploy.rb\n\nset :stages, %w(staging production)   #specify your stages\nset :stages_dir, 'config/deploy'      #specify which directory will have all the configurations files\nset :default_stage, 'staging'         #specify your default stage\n\n#this is used to deploy a single application in a specific environment\nset :bundle_prefix, -\u003e { %{HANAMI_ENV=\"#{fetch(:current_stage)}\" HANAMI_APPS=\"#{fetch(:current_app)}\" #{fetch(:bundle_bin)} exec} }\n```\nNote that `current_stage` and `current_app` are respectively the stage and the application being called.\n\nThen to create every file run:\n\n```shell\n$ bundle exec mina proteus:init\n```\n\nThis will create `config/deploy/staging.rb` and `config/deploy/production.rb` stage files and \n`config/deploy/staging/app1.rb`, `config/deploy/staging/app1.rb`, etc. \nUse them to define stage and app specific configuration.\n\nNow you can deploy the default stage with:\n\n```shell\n$ mina \u003cAPP-NAME\u003e deploy # this deploys to :default_stage\n```\n\nOr specify a stage explicitly:\n\n```shell\n$ mina staging \u003cAPP-NAME\u003e deploy\n$ mina production \u003cAPP-NAME\u003e deploy\n```\n\n# Maintenance and Contribution\nI'll be rarely maintaining this source code due to lack of time, but i will do as much as i can to resolve any open issues.\nIf you want to contribute, feel free to fork it, branch it and to create a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapontini%2Fmina-proteus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapontini%2Fmina-proteus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapontini%2Fmina-proteus/lists"}