Repository navigation
Database Setup
The database is empty so far. This page runs the migrations, which create every table KeyAnyWhere uses and the uuid-ossp extension, and then checks the result.
The kaw-cake command must work, as in Environment Variables.
Migrations are versioned scripts in config/Migrations/. Running them again later is safe: only the ones not applied yet run. That is also how an upgrade updates the database.
sudo -u www-data kaw-cake migrations migrateThe output lists each migration and ends with All Done. Outside development, KeyAnyWhere skips the schema snapshot (config/Migrations/schema-dump-default.lock) that the command would otherwise write into the code folder, which is read-only for www-data; the snapshot is only used in development.
migrations status lists every migration and whether it was applied:
sudo -u www-data kaw-cake migrations statusEvery line should read up. These are the tables you should have:
psql "host=127.0.0.1 dbname=keyanywhere user=kaw" -c '\dt'auditorias, cake_migrations, categorias, configuracoes, entradas, eventos_seguranca,
insecure_passwords, sessions, users
Source code · Issues · Releases · Packagist · Online demo · Hosted edition
1. Getting started
2. Installing in production
- Overview
- Preparing the Server
- Installing KeyAnyWhere
- File Permissions
- Generating Security Keys
- Environment Variables
- Configuration Files
- Database Setup
- Insecure Password Catalog
- Web Server and HTTPS
- First-Run Setup
3. Operating your installation
4. Using KeyAnyWhere
5. Security
6. Development
7. Extending