Skip to content

Commit

Permalink
Vishniakov GPG key. Getting started minor changes (#508)
Browse files Browse the repository at this point in the history
* Vishniakov GPG key. Getting started minor changes

* code climate errow fix
  • Loading branch information
svishniakov authored and Mehonoshin committed Oct 11, 2018
1 parent 112371e commit bde2d24
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/getting_started.md
Expand Up @@ -4,26 +4,26 @@

To get access to the secret variables, such as Github credentials, Slack and others you need to decrypt a file located at `secrets/envrc.gpg`

To to that we need to have your public GPG key in the repo.
To do that we need to have your public GPG key in the repo.

* generate GPG key with `gpg --gen-key`
* export public key to the file `gpg --export --armor youremail@example.com > last_name.asc`
* put the public key to the `secrets/pubkeys/last_name.asc`
* export public key to the file `gpg --export --armor youremail@example.com > your_last_name.asc`
* put the public key to the `secrets/pubkeys/your_last_name.asc`
* commit changes, push and create a PR
* when your PR is merged you'll be able to run `secrets/decrypt` to get the list of environment variables, required for project run
* after PR is merged you'll be able to run `secrets/decrypt` to get the list of environment variables required for project run

For more information about GPG encryption read this [article](http://blog.ghostinthemachines.com/2015/03/01/how-to-use-gpg-command-line/).
Follow the link to read more about about GPG encryption [article](http://blog.ghostinthemachines.com/2015/03/01/how-to-use-gpg-command-line/).

## To run the application natively:

* The [postgresql][postgresql] database must be installed
* `git clone https://github.com/howtohireme/give-me-poc.git`
* `cd give-me-poc`
* `cp config/database.yml.sample config/database.yml`
* Change the password in `config/database.yml` to your password.
* Change the password in `config/database.yml` to your password
* `rails db:create`
* `rails db:schema:load`
* Polulate the empty database with `rake db:seed`
* Populate the empty database with `rake db:seed`

## To run the application with Vagrant:

Expand Down
31 changes: 31 additions & 0 deletions secrets/pubkeys/vishniakov.asc
@@ -0,0 +1,31 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFu4ZgEBCACTIfFT+IUUM7ury25yF/tmErrtDst6PvanE4dbYEbvne2mK0Tn
KoJDz4gdkIGmkMwxfIulJq78T3Q9f+vuax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kfGs7geOfsDOTGhx5dPG8Ol++EgobpTnG
zkkMKERVBEldhAPyCQARAQABiQE8BBgBCAAmFiEEGZ68xRY/dS4nbcwiKzkutZdk
N8cFAlu4ZgECGwwFCQPCZwAACgkQKzkutZdkN8cP1gf8CNTZ2GrOr5iaz1849WNh
B0iCBTh1o4cvTTbaHlDtVYTNxIlFQZtYrdRy/IcIw9S1l27reXBKUCeVCPxpzoiG
fx5Mkuyhflb4SsFpcw9NkEA/7h/q3K3+07P61XhrSvzJsYAKs9sPa6I0uSI0fUzS
S5560GabUi6RnionZyq+HihGriCzApBr4+zY2BoRY9ieTj/oxUAaSxrys6evcVYz
c4/EAFwhEEHYOKAce+A3evdC4bXbOGogQ/oSGbC/pWnZUygs0fbIZk5heddJHluh
Sh/Y+Gm2bTaNzEMbPw5YXL3gdXO43RPeK0qMi011/KAxRZdnsSTfcZ8ert8Kzllj
rQ==
=/DyY
-----END PGP PUBLIC KEY BLOCK-----

0 comments on commit bde2d24

Please sign in to comment.