Skip to content

Update development instructions regarding figaro#60

Merged
MikeMcQuaid merged 2 commits intomasterfrom
figaro-setup
Jun 7, 2017
Merged

Update development instructions regarding figaro#60
MikeMcQuaid merged 2 commits intomasterfrom
figaro-setup

Conversation

@kytrinyx
Copy link

@kytrinyx kytrinyx commented Jun 6, 2017

If you don't have the correct Ruby version installed, per the
.ruby-version file, then bundle exec figaro install will
blow up with a version not installed error.

If you take off the bundle exec, then it tries to run figaro,
which you may not have at this point.

We could update the instructions to say

gem install figaro && figaro install

however that will generate a config/application.yml with
commented out environment variables in it, none of which we need.

There is a config/application.example.yml file which lists the
variables that we do need.

To bypass all the potential errors of trying to work with a gem
before running bootstrap and setup, this instructs people to
copy the example yaml and fill it out according to the tokens
generated for the oauth app.

This also is explicit about what URL to configure for OAuth.

We're telling people to create a GitHub OAuth application that points to their app, but
we've not said anything about what URL to put there.

I'm assuming that this URL is used for the redirect after logging in and authorizing the application,
in which case the localhost:3000 is fine as a default.

If we need to process web hooks, then we will have to instruct people to set up ngrok or localtunnel.

These instructions were previously updated in #24

@kytrinyx kytrinyx requested a review from MikeMcQuaid June 6, 2017 20:49
README.md Outdated
Or for more information about using figaro, see https://github.com/laserlemon/figaro
Update `config/application.yml`, setting the `github_client_id` and `github_client_secret` variables generated for your GitHub OAuth Application

The environment variables are managed using [figaro][].
Copy link
Contributor

Choose a reason for hiding this comment

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

Mind using an inline link here? I find non-inline ones a pain to "track down".

Copy link
Author

Choose a reason for hiding this comment

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

Sure, no problem.

Copy link
Author

Choose a reason for hiding this comment

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

Done.

README.md Outdated
Register a [new GitHub OAuth application](https://github.com/settings/applications/new) with the Authorization callback URL pointing to `http://localhost:3000/users/auth/github/callback`.

Or for more information about using figaro, see https://github.com/laserlemon/figaro
Update `config/application.yml`, setting the `github_client_id` and `github_client_secret` variables generated for your GitHub OAuth Application
Copy link
Contributor

Choose a reason for hiding this comment

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

Trailing . would be good. Also might want to be a little more forceful; this sounds like an instruction but maybe not a requirement. Would be good to have a you will need to... somewhere in the ### Environment variables section.

Copy link
Author

Choose a reason for hiding this comment

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

Anything in the setup which isn't marked optional reads as mandatory to me. Extra words just make it harder to scan. I'll have a second go at it.

Copy link
Author

Choose a reason for hiding this comment

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

I've taken another stab at the rewrite.

Katrina Owen added 2 commits June 7, 2017 08:52
If you don't have the correct Ruby version installed, per the
.ruby-version file, then `bundle exec figaro install` will
blow up with a _version not installed_ error.

If you take off the bundle exec, then it tries to run figaro,
which you may not have at this point.

We could update the instructions to say

    gem install figaro && figaro install

however that will generate a config/application.yml with
commented out environment variables in it, none of which we need.

There is a config/application.example.yml file which lists the
variables that we do need.

To bypass all the potential errors of trying to work with a gem
before running bootstrap and setup, this instructs people to
copy the example yaml and fill it out according to the tokens
generated for the oauth app.
We're telling people to create a GitHub OAuth application that points to their app, but
we've not said anything about what URL to put there.

I'm assuming that this URL is used for the redirect after logging in and authorizing the application,
in which case the localhost:3000 is fine as a default.

If we need to process web hooks, then we will have to instruct people to set up ngrok or localtunnel.
@kytrinyx
Copy link
Author

kytrinyx commented Jun 7, 2017

OK, I'm still not sure about this. I moved the "Getting Started" heading above "Environment Variables" so that it's clear that this is part of getting started. Then I tweaked the wording a little to make it a little bit more to the point and scannable.

@MikeMcQuaid MikeMcQuaid merged commit 9ec1f31 into master Jun 7, 2017
@MikeMcQuaid
Copy link
Contributor

This is great thanks @kytrinyx 👏

@MikeMcQuaid MikeMcQuaid deleted the figaro-setup branch June 7, 2017 19:57
kant added a commit to kant/opensourcefriday that referenced this pull request Oct 20, 2018
MikeMcQuaid added a commit that referenced this pull request Oct 23, 2018
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.

2 participants