Commento on Glitch!

commento on Glitch!


Commento is one of the best comment system for websites, blogs, etc. And I found out it runs perfectly on Glitch. Steps:

  1. Learn how to get a free postgreSQL database here. DO NOT VISIT YOUR APP YET.
  2. Remix the project here!. Make the project private.
  3. Change “start.sh.example” to “start.sh”
  4. In start.sh, change POSTGRES_URI=postgres://user:pass@hostname:5432/dbname to the URI that Heroku gave you from step 1.
  5. In start.sh, change PROJECT_URL to teh url of your project (e.g. https://yourprojectname.glitch.me)
  6. Run refresh. Visit your app and you can make an account.

Demos:

FAQ and help:

Commento keeps redirecting to the demo page!

Yeah, it does that a lot when you first try to visit the app. Follow these steps below to fix it:

  1. Remove the export lines in start.sh. It should look like this:
#!/bin/bash

PROJECT_URL=[YOUR PROJECT URL]
POSTGRES_URI=postgres://user:pass@hostname:5432/dbname
./commento
  1. Run refresh
  2. Add the export lines again:
#!/bin/bash
PROJECT_URL=[YOUR PROJECT URL]

POSTGRES_URI=postgres://user:pass@hostname:5432/dbname

export COMMENTO_ORIGIN=$PROJECT_URL
export COMMENTO_PORT=3000
export COMMENTO_POSTGRES=$POSTGRES_URI
export COMMENTO_CDN_PREFIX=$COMMENTO_ORIGIN
./commento
  1. Run refresh again.
  2. Visit the page in a incognito tab. Verify that it works then you can use commento on a normal tab.
4 Likes

Disclaimer to other users: Commento is an existing comment system, it was not created by @aboutdavid. The Glitch project provided in the post is a demo of how good Commento can run on Glitch. :slightly_smiling_face:

4 Likes

When exactly did I say I owned commento lol?

1 Like

:joy: For users unfamiliar with commento, they might think it’s a comment system created by you (I did).

2 Likes

:laughing:
I’ll add more links, thanks

1 Like

Whoops, I accidently make the project private.

1 Like

It seems like it redirects to the hello one. Is this intentional?

Ok, I made an edit, follow steps 5 and 6 again.

1 Like

Nope, it doesn’t work…

it does seem to put data on my db, though

Yeah, it does that a lot when you first login. Follow these steps:

  1. Remove the export lines in start.sh. It should look like this:
#!/bin/bash

PROJECT_URL=[YOUR PROJECT URL]
POSTGRES_URI=postgres://user:pass@hostname:5432/dbname
./commento
  1. Run refresh
  2. Add the export lines again:
#!/bin/bash
PROJECT_URL=[YOUR PROJECT URL]

POSTGRES_URI=postgres://user:pass@hostname:5432/dbname

export COMMENTO_ORIGIN=$PROJECT_URL
export COMMENTO_PORT=3000
export COMMENTO_POSTGRES=$POSTGRES_URI
export COMMENTO_CDN_PREFIX=$COMMENTO_ORIGIN
./commento
  1. Run refresh again.
  2. Visit the page in a incognito tab. Verify that it works then you can use commento on a normal tab.
2 Likes

I suggest you change 3000, to the environment variable point because that’s how glitch recommends doing it

What do you mean?

Actually, I thought the only port that worked was 3000…

4 Likes

I believe glitch pefers you use the enviorment variable port or was it PORT to select which port to use which is how it’s done in the templates, in case they ever decide to not use port 3000

Ok, I updated it.
Edit: it’s PORT

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.