Skip to content

Conversation

@mxmeinhold
Copy link
Contributor

@mxmeinhold mxmeinhold commented Nov 9, 2020

This sets up the configs to allow running a develop vs main branch.
Also adds some more instructions for deployment, and helps prevent someone from accidentally creating votes in the prod collections.

Pre Merge Checklist:

  • Get the app to properly read env variables, deprecate dotenv

Post Merge Checklist:

  • Create main branch
  • Point bc/vote to main branch
  • Point bc/vote-dev to develop branch
  • Create 1.0.0 tag and release

data:
DB_URL: mongodb://<user>:<password>@tide.csh.rit.edu/vote?ssl=true
NODE_ENV: <env>
REACT_APP_BASE_API_URL: https://vote.csh.rit.edu
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For these values does the react app still just ignore this and pull from the .env for whatever reason? we probably need to fix that so that it actually will point to the dev service for dev

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I meant to ask you about that. Does dotenv get overridden by the actual environment? Looks like vote.cs.house is a wee bit broken, if I simulate loggint in as evals it's getting stuck. If flashes logged in and then goes back to redirecting.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the .env file was part of the boilerplate and I don't really know where it pulls it in off the top of my head but I could look into that at some point. When we tried to remove it completely the variables were "undefined", so I don't think it's getting the actual environment at all for some reason, but I'm not sure why

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I'm gonna switch to homework for the rest of today, but we'll need to fix that before we're ready for 1.0.0 I think. I've set the dev build to build off this branch, so we can do a bit more testing on OKD if we need.

WillNilges
WillNilges previously approved these changes Nov 10, 2020
Copy link
Member

@WillNilges WillNilges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🆗

@mxmeinhold
Copy link
Contributor Author

I'm gonna separate out the linting from this PR and get it in develop separately so that we get linting in #31.

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

Successfully merging this pull request may close these issues.

4 participants