-
Notifications
You must be signed in to change notification settings - Fork 6
Useful Shell Commands
mariamoritz edited this page Nov 5, 2014
·
6 revisions
Assuming your Neo4j Database Data is in /var/lib/neo4j/
stop the service
cd /var/lib/neo4j/data
sudo /etc/init.d/neo4j-service stop`
start the service
cd /var/lib/neo4j/data
sudo /etc/init.d/neo4j-service start
fab destroy_neo4j
Neo4j is running on
http://localhost:7474
The Webadmin
http://localhost:7474/webadmin
The Browser
http://localhost:7474/browser
The Neo4j REST Client
http://localhost:7474/db/data/
The easiest Way to create indices on your Database, is via the Browser, type e.g.:
CREATE INDEX ON :Person(name)
Assuming you are in /opt/phaidra:
Activate the Virtual Environment
source env/bin/activate
(Re)starting the application (Uwsgi & Nginx)
fab restart
Deactivate the Virtual Environment
deactivate
python manage.py shell
Install (or update) the Requirements
(sudo) pip install (-U) -r requirements.txt
Save your own System's State into the Requirements
pip freeze > requirements.txt
Login to the Postgres Shell
psql -U databaseuser -h localhost databasepassword
If you wanna adapt Changes others made (after you pulled from GitHub)
python manage.py migrate app
If you made Changes and wanna adapt them
python manage.py makemigrations app
python manage.py migrate app
- Developer tools and workflow
- API
- Neo4j-powered
- Postgres-powered
- Data
- Internationalization
- General information
- Developer tools and workflow
- Project structure overview
- Frontend vs. Backend Templates
- Backbone.js app structure
- Internationalization for JS
- Guidelines for creating content
- Adding a locale to Phaidra
- Postgres Database
- Neo4j
- Django
- "The server"
- Git
- UI