Skip to content

Commit

Permalink
Fix narou web problem and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jam7 committed May 6, 2017
1 parent f6cae93 commit 0eb9b26
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ RUN gem install narou -v ${NAROU_VERSION} --no-document
COPY init.sh /usr/local/bin

ENTRYPOINT ["init.sh"]
CMD ["narou", "web", "-p", "8000", "-n"]
CMD ["narou"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ All data are stored in `/opt/narou`. So use `docker run -v $HOME/.narou:/opt/na

## Run as web service

Use `docker run -p IP-ADDRESS:8000:8000 narou web -p 8000 -n`.
Use `docker run -p IP-ADDRESS:8000-8001:8000-8001 narou web -p 8000 -n`. Narou.rb uses sepecified port 8000 for web server and +1 port 8001 for push_server.

## License

Expand Down
1 change: 0 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ if [ ! -d "/opt/narou/.narou" ]; then
ln -s /opt/kindlegen/kindlegen /opt/AozoraEpub3
narou init -p /opt/narou/AozoraEpub3
narou setting device=kindle
narou setting server-bind=*
echo -e "---\nalready-server-boot: true" > /opt/narou/.narousetting/server_setting.yaml
fi

Expand Down

0 comments on commit 0eb9b26

Please sign in to comment.