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

ABOUT DEV.ENV #9

Open
dclambo720 opened this issue Apr 19, 2021 · 5 comments
Open

ABOUT DEV.ENV #9

dclambo720 opened this issue Apr 19, 2021 · 5 comments

Comments

@dclambo720
Copy link

do we need to create both dev.env and production.env? for this project

@Shahzayb
Copy link
Owner

if (env !== 'production') {
  const path = require('path');
  const config = {};
  if (env === 'test') {
    config.path = path.join(__dirname, '/config/test.env');
  } else {
    config.path = path.join(__dirname, '/config/dev.env');
  }
  require('dotenv').config(config);
}

I'm not using the root_dir/config/dev.env during the production.
If you're deploying your site on Heroku then add the required env variables like this

@Shahzayb
Copy link
Owner

root_dir/config/dev.env

I'm only using the envs inside this file during development.

@dclambo720
Copy link
Author

dclambo720 commented Apr 20, 2021 via email

@dclambo720
Copy link
Author

dclambo720 commented Apr 20, 2021 via email

@Shahzayb
Copy link
Owner

  1. Which database can we use?

https://www.mongodb.com/cloud/atlas

For Google oauth i have created credentials in google oauth but while
running this project i can't get authentication process.

Inside freemage/config folder, create dev.env file. And in freemage/client, create local.env file. And add the required env variables in each file.

Read this for more info on Google OAuth.

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

2 participants