1.8.5 • Published 8 years ago

shipit-db v1.8.5

Weekly downloads
21
License
MIT
Repository
github
Last release
8 years ago

shipit-db

A set of database tasks for Shipit.

Features:

Roadmap

  • DB Backup tasks

Install

npm install shipit-db

Usage

Example shipitfile.js

module.exports = function (shipit) {
  require('shipit-db')(shipit);

  shipit.initConfig({
    default: {
      db: {
        ignoreTables: ['some_table'],
        local: {
          host     : 'localhost',
          adapter  : 'mysql',
          username : 'root',
          password : 'root',
          socket   : '/Applications/MAMP/tmp/mysql/mysql.sock',
          database : 'mysite_local',
        },
      }
    },
    staging: {
      servers: 'user@myserver.com',
      db: {
        remote: {
          host     : '127.0.0.1',
          adapter  : 'mysql',
          username : 'myusername',
          password : '123password',
          database : 'mysite_staging',
        }
      }
    }
  });
};

Dump your local database, upload and import to remote:

shipit staging db:push

Dump your remote database, download and import to local:

shipit staging db:pull

Options (shipit.config.db)

db.ignoreTables

Type: Array

An array of database tables to ignore.

db.local \ db.remote

Type: Object

An object of database credentials.

License

MIT

1.8.5

8 years ago

1.8.4

8 years ago

1.8.3

8 years ago

1.8.2

8 years ago

1.8.1

9 years ago

1.8.1-pre

9 years ago

1.8.0

9 years ago

1.9.0

9 years ago

1.7.0

10 years ago

1.6.2

10 years ago

1.6.1

10 years ago

1.6.0

10 years ago

1.5.2

10 years ago

1.5.1

10 years ago

1.5.0

10 years ago

1.4.0

10 years ago

1.3.0

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago