-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Server guide
Eclipse Foundation edited this page Mar 27, 2023
·
6 revisions
See README.md
.
See appendix/waifu2x.upstart.conf
sudo cp appendix/waifu2x.upstart.conf /etc/init/waifu2x_1
sudo initctl \<start|stop|restart\> waifu2x_1
This upstart script calls /home/ubuntu/waifu2x/appendix/run-web.sh
.
run-web.sh <GPU Device ID (start from 0)> <TCP Port Number>
.
And, run-web.sh
loads ~/.zshrc
at first line. If you are using bash or any other shell, please edit that line.
crontab -e
- add
*/30 * * * * /home/ubuntu/waifu2x/appendix/purge_cache.sh
purge_cache.sh
removes image cache in ./cache/
. If cache is older than 4 hours, that cache will remove.
And, purge_cache.sh
loads ~/.zshrc
at first line. If you are using bash or any other shell, please edit that line.
See appendix/waifu2x.nginx.conf
.
-
sudo cp appendix/waifu2x.nginx.conf /etc/nginx/sites-available/waifu2x.udp.jp
(fill your domain) sudo ln -s /etc/nginx/sites-available/waifu2x.udp.jp /etc/nginx/sites-enabled/
sudo service nginx restart
Edit /etc/nginx/sites-available/waifu2x.udp.jp
for your env.
I recommend to add client_max_body_size 5242880
to nginx.conf
. It is file size limits.
- Edit
webgen/templates/index.html.erb
- Run
ruby webgen/gen.rb
- See
./appendix/*.html