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:
Learn how to get a free postgreSQL database here . DO NOT VISIT YOUR APP YET.
Remix the project here! . Make the project private.
Change “start.sh.example” to “start.sh”
In start.sh, change POSTGRES_URI=postgres://user:pass@hostname:5432/dbname
to the URI that Heroku gave you from step 1.
In start.sh, change PROJECT_URL to teh url of your project (e.g. https://yourprojectname.glitch.me
)
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:
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
Run refresh
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
Run refresh again.
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.
4 Likes
When exactly did I say I owned commento lol?
1 Like
For users unfamiliar with commento, they might think it’s a comment system created by you (I did).
2 Likes
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:
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
Run refresh
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
Run refresh again.
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
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
system
Closed
April 7, 2021, 3:44pm
16
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.