https://github.com/mwapsam/eshop
https://github.com/mwapsam/eshop
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mwapsam/eshop
- Owner: Mwapsam
- Created: 2022-07-09T00:08:34.000Z (almost 3 years ago)
- Default Branch: dev
- Last Pushed: 2022-07-10T09:51:49.000Z (almost 3 years ago)
- Last Synced: 2025-01-17T10:13:27.101Z (4 months ago)
- Language: Ruby
- Size: 106 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# To secure your Stripe credentials
```$env:EDITOR="notepad"```
```bundle exec rails credentials:edit```
## In the Editor type;
stripe:
secret: your_secret_key
public: your_public_keySave and exit the editor
## To access your stripe credentials
`Rails.application.credentials[:stripe][:secret]`
`Rails.application.credentials[:stripe][:public]`
# Set master.key in production (heroku):
By default `master.key` is in `.gitignore`
heroku config:set RAILS_MASTER_KEY=123456789
heroku config:set RAILS_MASTER_KEY=`cat config/master.key`
heroku config:set RAILS_MASTER_KEY=`cat config/credentials/production.key`In config/environments/production.rb uncomment `config.require_master_key = true`
# Deploy to heroku`git add .`
`git commit -am "staging"`
`git push heroku master`
`heroku run rails db:migrate`