Joseph Boiteau
d61c08c7c7
Run in production mode by default
...
Use DEBUG environment variable to run debug mode
2017-01-03 13:36:52 +11:00
Samuel Dion-Girardeau
9e89376416
Set password value and expiration atomically
...
Redis has a `SETEX` (http://redis.io/commands/SETEX ) method,
which does both setting the value and setting the expiration
atomically.
2016-10-23 03:11:32 -04:00
Donny Winston
d12d218042
Handle and document use of REDIS_URL env var
2016-09-08 13:44:03 -07:00
Nicholas Charriere
c22c902de6
Merge pull request #23 from pinterest/more-env-vars
...
Add ENV variables options
2016-09-08 09:58:01 -07:00
Brandon Davis
fadd2854e5
Fix for remaining comments.
...
- Call function within try/catch
- Syntax clean up
2016-08-22 21:59:08 -07:00
Brandon Davis
e0ae801b24
Remove TimeoutError import
2016-08-21 21:33:12 -07:00
Brandon Davis
9694d7da7f
Switch to use decorator for checking if redis server is up.
...
- setup.py removed empty line flake8 was complaining.
2016-08-21 21:27:00 -07:00
Brandon Davis
c9db491485
Minor cleanup
2016-08-21 11:50:06 -07:00
Brandon Davis
2d6aec17cd
Remove unused traceback and code formatting cleanup
2016-08-21 11:24:20 -07:00
Brandon Davis
4feeaef2fd
Add exception handling for when redis is down and or not running.
2016-08-21 11:20:00 -07:00
Nicholas Charriere
2855e5b9b6
Add env var options
2016-08-21 09:05:01 +02:00
Samuel Dion-Girardeau
a46fc40aa3
Improve string encoding for password retrieval
...
- Prevent the password from displaying as b'...' in the app;
- Use Flask's `get_data(as_test=True)` to read the data, in the tests;
- Add test to ensure `get_password` is not returning bytes.
2016-08-11 22:05:35 -04:00
Nicholas Charriere
d88cf2600e
Refactor _id() function to be inline
2016-07-18 13:35:57 -07:00
Nicholas Charriere
db1ef7673e
Make flake8 test pass
2016-07-18 11:53:34 -07:00
Dave Dash
eefe2bdc76
Prepare snappass for distribution.
2013-10-05 23:10:50 -07:00