diff --git a/Dockerfile b/Dockerfile index 9c2eb5e..1d9b82f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 8565745..15615f4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/init.sh b/init.sh index 79e2b2d..0aa76ab 100755 --- a/init.sh +++ b/init.sh @@ -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