{"id":26251316,"url":"https://github.com/hangingman/fswiki","last_synced_at":"2025-03-13T16:52:20.603Z","repository":{"id":18024971,"uuid":"21057901","full_name":"hangingman/fswiki","owner":"hangingman","description":"FreeStyleWiki private modified repository","archived":false,"fork":false,"pushed_at":"2024-05-02T14:10:06.000Z","size":2000,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-06T01:38:56.192Z","etag":null,"topics":["fswiki","perl","wiki"],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"danielecook/python-cli-skeleton","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hangingman.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-06-21T02:01:01.000Z","updated_at":"2024-05-02T14:10:08.000Z","dependencies_parsed_at":"2024-02-11T10:20:18.963Z","dependency_job_id":"533e4f22-4ae4-4b78-aa3c-9925a9d03800","html_url":"https://github.com/hangingman/fswiki","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangingman%2Ffswiki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangingman%2Ffswiki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangingman%2Ffswiki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangingman%2Ffswiki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hangingman","download_url":"https://codeload.github.com/hangingman/fswiki/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243447547,"owners_count":20292449,"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":["fswiki","perl","wiki"],"created_at":"2025-03-13T16:52:20.201Z","updated_at":"2025-03-13T16:52:20.598Z","avatar_url":"https://github.com/hangingman.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"fswiki\n======\n\nFreeStyleWiki powered by PSGI\n\n\nLocal run with carton\n======================\n\n```sh\n// perlbrewの導入\n$ curl -L http://install.perlbrew.pl | bash\n$ echo 'source ~/perl5/perlbrew/etc/bashrc' \u003e\u003e ~/.bashrc\n$ source ~/.bashrc\n$ perlbrew init\n\n// perl v5.30.2の導入\n$ perlbrew install 5.30.2\n$ perlbrew switch perl-5.30.2\n$ perl -v\nv5.30.2\n\n// carton\n$ cpanm Carton\n$ cpanm --local-lib=~/perl5 local::lib\n$ carton install\n\n// 初回起動の場合(作業ディレクトリを引数で渡す)\n$ ./setup.sh `pwd`\n\n// Perlのアプリケーションサーバを起動\n$ carton exec plackup -r\n```\n\nRun as service\n==============\n\n\nDocker env run for development\n==============================\n\n- デプロイの検証のため、dockerコンテナを起動する\n```shell\n$ make build\n$ make run\n$ docker ps\nCONTAINER ID        IMAGE                       COMMAND                  CREATED             STATUS              PORTS                                                NAMES\nce4f157d2c1f        fswiki-db-server:latest     \"entry_point.sh /usr…\"   2 minutes ago       Up 2 minutes        22/tcp, 0.0.0.0:3306-\u003e3306/tcp                       fswiki_mysql_1\nf6a4b9c9f246        fswiki-wiki-server:latest   \"entry_point.sh /usr…\"   2 minutes ago       Up 2 minutes        0.0.0.0:80-\u003e80/tcp, 22/tcp, 0.0.0.0:5000-\u003e5000/tcp   fswiki_wiki_1\n\n// コンテナに入る\n$ docker exec -it fswiki-wiki-1 bash\n```\n\n- fswikiのデプロイをローカルでテストする\n\n```shell\n$ ansible --version\nansible 2.10.8\n  ...\n  python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]\n\n$ cd ansible/\n```\n\n- varsを編集\n\n```shell\n$ vim group_vars/all.yml\n$ chmod +x ./ansible-playbook.sh\n$ ./ansible-playbook.sh -i [local or production] fswiki-playbook.yml\n```\n\n- docker内部でfswikiをsystemctlから操作可能\n\n```shell\n$ sudo systemctl start fswiki\n$ sudo systemctl stop fswiki\n$ sudo systemctl restart fswiki\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhangingman%2Ffswiki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhangingman%2Ffswiki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhangingman%2Ffswiki/lists"}