https://github.com/hangingman/fswiki
FreeStyleWiki private modified repository
https://github.com/hangingman/fswiki
fswiki perl wiki
Last synced: 10 months ago
JSON representation
FreeStyleWiki private modified repository
- Host: GitHub
- URL: https://github.com/hangingman/fswiki
- Owner: hangingman
- Created: 2014-06-21T02:01:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T14:10:06.000Z (over 1 year ago)
- Last Synced: 2025-03-06T01:38:56.192Z (10 months ago)
- Topics: fswiki, perl, wiki
- Language: Perl
- Size: 1.91 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
fswiki
======
FreeStyleWiki powered by PSGI
Local run with carton
======================
```sh
// perlbrewの導入
$ curl -L http://install.perlbrew.pl | bash
$ echo 'source ~/perl5/perlbrew/etc/bashrc' >> ~/.bashrc
$ source ~/.bashrc
$ perlbrew init
// perl v5.30.2の導入
$ perlbrew install 5.30.2
$ perlbrew switch perl-5.30.2
$ perl -v
v5.30.2
// carton
$ cpanm Carton
$ cpanm --local-lib=~/perl5 local::lib
$ carton install
// 初回起動の場合(作業ディレクトリを引数で渡す)
$ ./setup.sh `pwd`
// Perlのアプリケーションサーバを起動
$ carton exec plackup -r
```
Run as service
==============
Docker env run for development
==============================
- デプロイの検証のため、dockerコンテナを起動する
```shell
$ make build
$ make run
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ce4f157d2c1f fswiki-db-server:latest "entry_point.sh /usr…" 2 minutes ago Up 2 minutes 22/tcp, 0.0.0.0:3306->3306/tcp fswiki_mysql_1
f6a4b9c9f246 fswiki-wiki-server:latest "entry_point.sh /usr…" 2 minutes ago Up 2 minutes 0.0.0.0:80->80/tcp, 22/tcp, 0.0.0.0:5000->5000/tcp fswiki_wiki_1
// コンテナに入る
$ docker exec -it fswiki-wiki-1 bash
```
- fswikiのデプロイをローカルでテストする
```shell
$ ansible --version
ansible 2.10.8
...
python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
$ cd ansible/
```
- varsを編集
```shell
$ vim group_vars/all.yml
$ chmod +x ./ansible-playbook.sh
$ ./ansible-playbook.sh -i [local or production] fswiki-playbook.yml
```
- docker内部でfswikiをsystemctlから操作可能
```shell
$ sudo systemctl start fswiki
$ sudo systemctl stop fswiki
$ sudo systemctl restart fswiki
```