[edit] No config.json file
-
I've added a domain (alias) to Openshift to my app name so I don't have to do namespace-domain.rhcloud.com, but whenever I use the domain NodeBB doesn't work. For example I cant make changes in the Admin CP or delete/lock/pin any topics. But when I go to namespace-domain.rhcloud.com, everything works fine. Do I have to change the NodeBB setup domain name ?
-
@Aureney Yes, you need to change the
url
field in yourconfig.json
file to the url of your domain. -
@Aureney I don't know what your personal setup is, but you need to somehow change that file and restart NodeBB.
-
@Aureney it's created by the setup utility in the root directory of NodeBB.
-
@Aureney if you ran setup, it should be there right next to
package.json
. -
@Aureney you should have a config.json file at least on your server. Try sshing in and changing it there.
-
@Aureney I'm not gonna explain it to you: Google is helpful for that. There should be a tutorial for whatever your setup is.
-
Actually the guide you use overwrites the NodeBB config within its startup-script.
It uses theOPENSHIFT_APP_DNS_ALIAS
and fallbackOPENSHIFT_APP_DNS
environment variables. So I guess those should be set by openshift and only a restart of NodeBB would be necessary.
You are using a custom script, thus that scripts author/support is the correct person to ask for troubles.
You seem to already have started a discussion at GitHub, reference: https://github.com/ahwayakchih/openshift-nodebb/issues/20Next time, please provide more information within OP; Could've saved @PitaJ some time.
-
@frissdiegurke I know. That's why I started it.