{"id":26530239,"url":"https://github.com/nutfes/group_manager_env","last_synced_at":"2025-10-09T20:35:18.255Z","repository":{"id":83724977,"uuid":"76339322","full_name":"NUTFes/group_manager_env","owner":"NUTFes","description":"the repository is using vagrant to setup the rails project \"Group-manager\". ","archived":false,"fork":false,"pushed_at":"2017-05-21T12:47:16.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-21T17:54:26.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/NUTFes.png","metadata":{"files":{"readme":"Readme.md","changelog":"change_proxy.sh","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":"2016-12-13T08:36:41.000Z","updated_at":"2016-12-13T08:38:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e1012c5-6196-40a9-a3cf-b4087315e2e6","html_url":"https://github.com/NUTFes/group_manager_env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NUTFes/group_manager_env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NUTFes%2Fgroup_manager_env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NUTFes%2Fgroup_manager_env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NUTFes%2Fgroup_manager_env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NUTFes%2Fgroup_manager_env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NUTFes","download_url":"https://codeload.github.com/NUTFes/group_manager_env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NUTFes%2Fgroup_manager_env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001980,"owners_count":26083259,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-03-21T17:40:29.621Z","updated_at":"2025-10-09T20:35:18.251Z","avatar_url":"https://github.com/NUTFes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# group-managerアプリ開発環境\n\n### やってること\n``virtualbox`` という仮想マシンツールの上に, linuxを入れて  \nその上に``NUTFes/group-manager``というWebアプリをビルドする.   \n``vagrant`` は自動で環境構築をやってくれるツール.  \n\n\n### 必要なツール\nvagrantとvirtualboxはよしなに入れてください\nバージョンは最新を使ってください\n\n * vagrant http://localhost:3000/user_details/10000014\n * virtualbox https://www.virtualbox.org/\n\n### リポジトリのクローン\n\nvagrantの設定ファイルがあるリポジトリからファイルを``git clone``\n\n``git clone``がうまくいかない場合はgitのプロキシを設定する  \n学内であれば, ``yourproxy.com``の部分に学内のプロキシを設定  \n```\ngit config --global https.proxy http://proxy.yourproxy.com:8080\n```\n\nその後, 以下のコマンドを打つ\n```\n$ git clone https://github.com/NUTFes/group_manager_env.git\n$ cd ./group_manager_env\n```\n\n### vagrantで仮想マシンの作成\n\nvagrantを使い, virtualbox上に仮想マシンを作成する.  \n使用するOSは``Ubuntu 14.04``  \n\nVagrantは``Vagrantfile``があるディレクトリでないと,  \n動かないことに注意\n\n```\n$ pwd\n/Users/yourname/workspace/group_manager_env\n$ ls\n... Vagrantfile ...\n\n$ vagrant up \u003e log.txt\n# 30~40分くらい待つ\n# ログは``./log.txt``に残る\n```\n\nあとは, 待っていれば仮想マシンが作成される.  \n\n``vagrant up / halt / provision / ssh / destory``あたりは使うので調べると幸せになれる. \n\n#### ゲストマシン, ホストマシン\n仮想マシン(virtual machine)をゲストマシン(ゲストOS, vm),  \n元々パソコンで動いていたマシンをホストマシン(ホストOS)と呼ぶ\n\n### ゲストOSに接続\n\nsshを使ってゲストマシンに接続\n\n```\n# vagranfileがあるディレクトリ\n$ vagrant ssh\n```\n\n### サーバの立て方\n\n```\nsshでログインした状態で\n$ bundle exec rails server --bind=0.0.0.0\n```\n\nホストマシンのブラウザから``http://localhost:3000``に接続すればvagrant内のサーバに繋がる\nブラウザのプロキシ設定はoffにすること\n\n### メール設定について\n``NUTFes/group-manager``では, アカウント作成時に確認メールが送信される.   \nローカル開発環境ではサーバの環境変数を読んでいる.  \nゲストマシン内の``~/set_env_variable.sh``の中を編集する.   \nこのファイルはgithubにあげるとパスワード漏れるのであげないこと  \n\n### group-managerについて\nhttps://github.com/NUTFes/group-manager/blob/develop/docs/setup.md\n\n### vagrant の便利機能と運用\n\nvagrantは共有フォルダを自動で作成してくれる. \n\nホストマシンの``Vagrantfile``があるディレクトリを  \nゲストマシンの``/vagrant``としてコピーしてくれる.  \n\n基本的には, ホスト -\u003e ゲストの方向でファイル共有する運用\n\n開発環境に影響があるファイルについてはホストマシン側でファイル編集 / git管理をして,  \nゲストマシンは共有フォルダからファイルを読む/コピーするだけの設計\n\n管理するリポジトリが1つになり運用が楽になる.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnutfes%2Fgroup_manager_env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnutfes%2Fgroup_manager_env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnutfes%2Fgroup_manager_env/lists"}