Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local release server connect to remote postgres db #337

Open
kimlambiguit opened this issue Apr 28, 2023 · 0 comments
Open

Local release server connect to remote postgres db #337

kimlambiguit opened this issue Apr 28, 2023 · 0 comments

Comments

@kimlambiguit
Copy link

kimlambiguit commented Apr 28, 2023

i have a postgres db hosted on azure, i was able to run the steps in the database configuration readme.

below is my local.js

datastores: {
    postgresql: {
      adapter: 'sails-postgresql',
      host: 'xxxx.postgres.database.azure.com',
      user: 'electron_release_server_user',
      password: 'xxxx',
      database: 'electron_release_server',
      port: 5432,
    }
  },

  session: {
    secret: '6FA3075A5B7A709CC236214060C5AF1B893825DC2DDA220D76F0999907DCFDF',
    database: 'electron_release_server_sessions',
    host: 'xxxx.postgres.database.azure.com',
    user: 'electron_release_server_user',
    password: 'xxxx',
    port: 5432
  }

the xxxx are obviously place holder but to ensure i'm able to connect from my machine to the remote postgres, i tried using the credentials of electron_release_server_user via pgAdmi and I can connect with no issue. when i tried running electron-release server with npm start, i'm getting the error below.

image

if you need more info let me know. i'm just stuck with this.
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant