Lrwxrwxrwx 1 yourname yourname 7 Feb 24 19:42 python -> python3 rwxrwxr-x 1 yourname yourname 223 Feb 24 19:42 pip3.5 rwxrwxr-x 1 yourname yourname 223 Feb 24 19:42 pip3 rwxrwxr-x 1 yourname yourname 223 Feb 24 19:42 pip rwxrwxr-x 1 yourname yourname 2562 Feb 24 20:00 misaka rwxrwxr-x 1 yourname yourname 225 Feb 24 20:00 isso rwxrwxr-x 1 yourname yourname 251 Feb 24 19:42 easy_install-3.5 rwxrwxr-x 1 yourname yourname 251 Feb 24 19:42 easy_install rw-rw-r- 1 yourname yourname 1137 Feb 24 19:42 activate_this.py rw-rw-r- 1 yourname yourname 2233 Feb 24 19:42 activate.fish rw-rw-r- 1 yourname yourname 1035 Feb 24 19:42 activate.csh
rw-rw-r- 1 yourname yourname 2093 Feb 24 19:42 activate ĭrwxrwxr-x 6 yourname yourname 4096 Feb 24 19:42. If you ls -al that, you should see it there, along with the Virtual Environment’s local copies of Python, Pip and a couple of other libraries Isso uses:ĭrwxrwxr-x 2 yourname yourname 4096 Feb 24 20:00. If you ls -al your project directory again, you may think nothing has happened, as everything looks the same.
The install should only take a few seconds. Installing collected packages: html5lib, itsdangerous, werkzeug, misaka, isso Using cached Werkzeug-0.11.15-py2.p圓-none-any.whl Using cached isso-0.10.6-py2.p圓-none-any.whlĬollecting html5lib=0.9999999 (from isso)Ĭollecting werkzeug>=0.9 python_version != "2.6" and python_version != "2.7" (from isso) The most popular and well-established tool for creating a Python Virtual Environment is the eponymous Virtualenv but, being a thrills junkie, I opted to go for a newer kid on the block Pipenv.
The thinking behind this being that, your project will be self-contained and not liable to come crashing down round your ears, if a future update to Python breaks something. With a Virtual Environment, you’re basically creating a local copy, within your project folder of Python and any Python modules your project needs, along with any other dependencies-as opposed to running your project via the system-wide Python. Smarter people than me recommend that you should always setup a Virtual Environment when working with a Python project. The first few stages involve getting Isso up and running on your server. If you spot any such waywardness before my post-publication proof-reading brings it to ground, please let me know. So there are doubtless typos aplenty and possibly even errors, but hopefully nothing that will cause the entire intarwebs to explode. Writing this all down, it turned into a bit of a mammoth post. I’ve also assumed your site is running on a Ubuntu server that you have admin or sudo access to.
I’ve tried to pitch it at the level of someone who knows the basics of how to navigate round a file-system, using the command-line and who can use a text-editor. Hopefully it might help a few other folk out too. So, I thought I’d write it all down here, while it was relatively fresh in my mind. However, it did take me several hours of brow-furrowing, head-scratching and nose-picking to make head’n’tail of Isso’s documentation and work out how to shoe-horn that into my Hugo setup.
When I look back now at the amount of 'stuff' I had to do, to get Isso working, it’s not really that complex. If you’ve read my recent post on Disqus’s underhand link hijacking, you’ll know that it gave me the impetus I needed to finally make good on my long-held intention of getting rid of Disqus and installing a self-hosted comments system on Them’s Good Broth instead- to wit Isso. So back to Nginx, it is.Ī classic case of "If it ain’t broke, don’t fix it", methinks!Īnyway, if you want to see how I’ve configured Nginx to proxy to Isso, I’ve added that right at the end of this article. But, since upgrading to Caddy Version 2, I have had continual problems with the server dying on me -often multiple times a day- and/or refusing to start up again after a server reboot. I had hardly any problems whatsoever with Caddy while this site was running on Version 1. Postscript: Overriding Isso’s Built-in CSSĪs of October 2021, this site has reverted to using Nginx as the webserver, rather than Caddy.Fool Hugo into Displaying Isso Comments.Configure Caddy Server to Proxy to Isso.Export Existing Comments from Disqus as XML.