Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

run with npm #26

Closed
bluemir opened this issue Jan 4, 2016 · 2 comments
Closed

run with npm #26

bluemir opened this issue Jan 4, 2016 · 2 comments
Milestone

Comments

@bluemir
Copy link
Owner

bluemir commented Jan 4, 2016

npm 명령 만으로 동작할수 있게끔 만들어 두는 것이 좋겠다고 판단.

궁극적으로는 어떤 환경 설정 없이 실행시의 option 만으로도 완벽한 configure하여 웹브라우져 동작 까지 하도록 설정

사용 예제

npm install -g wikinote
wikinote -p 3000 --path="~/wiki"
#이후 사용자 브라우져에 wikinote 페이지가 뜰것
@bluemir
Copy link
Owner Author

bluemir commented Jan 16, 2016

이렇게 된다면 git clone을 통한 설치와 npm install -g를 통한 설치의 config 방법이 달라질수 있을듯.
특히 npm install -g 를 통한 설치는 보통 시스템 디렉토리에 깔리기 때문에 user.db 의 위치도 문제가 될수 있다.

보통 명령어를 통한 실행은 홈폴더의 dot file을 이용하지만 git clone 후 실행하는 서버와 같은 방식은 그 폴더에 config 파일을 두기 때문에 발생하는 문제이다. 이를 해결하려면 config 파일의 위치와 user.db같은 db의 위치를 지정하는 메타 config 가 있어야 할것 같다. 그래서 npm install -g 를 통해 설치한후 실행할때는 홈폴더에 .wikinote를 사용하고 git clone을 통해 설치 했을때는 그폴더를 그대로 이용하는 방법으로 해야할것 같다.

문서화를 하더라도 필연적으로 헷갈릴수 있는데 이걸 어떻게 처리할지 고민이 된다.

@bluemir
Copy link
Owner Author

bluemir commented Mar 29, 2016

두가지 경우 모두 config파일을 WIKINOTE_PATH(위키데이터가 저장되는곳) 아래로 지정하고 인자로도 설정이 가능하게 하게 변경

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant