Cloud bash history app using Python and Flask.
The app is currently under heavy development.
Run:
bash <(curl http://www.histsync.io/download-client/install.bash)
And then add this to your .bashrc / .bash_profile
preexec() {
~/.histsync/histsync-client --api-key {{hist_sync_api_key}} --user {{github_username}} "$1" --log-file ~/.histsync/log;
}
HistSync uses python2.7
Using foreman is recommended(makes easier config managing).
Foreman is a part of heroku toolbelt, but it can also be installed
as a standalone ruby gem by running gem install foreman
.
More info here.
- Initialize virtual environment:
virtualenv histsync-venv
- Activate virtual environment
source histsync-venv/bin/activate
- Install dependencies
pip install -r requirements-dev.txt
Note, that if your system uses python3 by default, you should run virtualenv -p PYTHON_EXE histsync-venv
in step 1, where PYTHON_EXE is a path to python2 executable.
Create .env file containing these lines
STANDALONE="true"
STANDALONE_USERNAME="yourusername"
DATABASE_URL="sqlite:///sqlite.db"
GITHUB_APP_ID="noid"
GITHUB_APP_SECRET="nosecret"
SECRET_KEY="devkey"
HistSync uses postgres in production(and it is recommended to use postgres in development), but using sqlite is also fine.
- Run
foreman run python
- In python shell:
from app import db
db.create_all()
- TODO: migrations
foreman run python app.py run
Goes to raoulvdberge for early testing, bug reporting & advice