Hey, I am trying to build supertokens (cli) from s...
# support-questions-legacy
n
Hey, I am trying to build supertokens (cli) from source and to make it work with postgres. I followed https://supertokens.com/blog/connect-supertokens-to-database#running-supertokens-and-postgresql-without-docker but can't find /usr/lib/supertokens/config.yaml in mac. I suppose it is /usr/local/etc/supertokens/config.yaml. but doing that too did not connect to the db (still connecting to in-memory-db). what might be happening? - basically, I am unable to make it work by just adding
postgresql_connection_uri
to config.yaml. I am building from source, is there anything else that needs taken care?
r
hey @nilinswap can you print out the output of running
supertokens --help
?
n
yes
Copy code
supertokens --help

  You are using SuperTokens Community

  Usage: supertokens [command] [--help] [--version]


  Commands:

->  hashingCalibrate [options]          Used to calibrate the settings for
                                        password hashing algorithms for a
                                        specific machine
->  uninstall                           Uninstalls SuperTokens
->  stop [options]                      Stops all (if no options are provided)
                                        or one specific instance of SuperTokens
->  start [options]                     Start an instance of SuperTokens
->  list                                List information about all currently
                                        running SuperTokens instances


  Files:

    Installation location               /usr/local/etc/supertokens/
    Default config file                 /usr/local/etc/supertokens/config.yaml
    Legal license                       /usr/local/etc/supertokens/LICENSE.md

Thank you for checking out SuperTokens :)
r
right. So you need to edit
/usr/local/etc/supertokens/config.yaml
. And make sure to remove the leading
#
from the variable you set in the config.yaml file
n
I checked by downloading the build from https://supertokens.com/use-oss and it works as expected. It means I am not building it properly from the source (i.e. by running
java -classpath "./cli/*" io.supertokens.cli.Main true install
inside my cloned repo) to be used with postgres. e.g. config.yaml of supertokens-core's master branch doesn't contain postgres_* configs. what am I missing?
r
n
following this only. I was hoping if there was a way without docker.
r
There is. You don't need to use docker
You can ignore the "Creating a docker image" part
n
I solved it by using postgresql-plugin in modules.txt. Thanks for the help. ✌️
4 Views