Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
dokku-gulp-tasks
Advanced tools
A few opinionated gulp.js tasks for speeding-up deployment with Dokku.
A few opinionated gulp.js tasks for speeding-up deployment with Dokku.
These tasks assume the following about your environment:
dokku
user/vagrant
gulpfile.babel.js
npm install --save dokku-gulp-tasks
gulpfile.js
, and pass it an instance of gulp:// ES2015-style
import deployTasks from 'dokku-gulp-tasks';
deployTasks(gulp);
// CommonJS-style
require('dokku-gulp-tasks')(gulp);
env.json
(see example) in the root of your project to describe the local database credentials, and remote Dokku server(s).You can override the shared directory with the sharedDirectory
parameter:
// env.json
{
"sharedDirectory": "/home/vagrant"
}
You can force the scripts to expect to be run in the context of a Vagrant machine (versus the host machine) by setting isVagrantContext
:
// env.json
{
"isVagrantContext": true
}
By default, the script will check if the user who invoked it matches vagrant
to determine the context.
gulp dokku [--command <command>] [--env <env>]
The dokku
task allows you to run arbitrary Dokku commands, specified in the command
argument (for example, gulp dokku apps
will list the apps deployed to the server). If you have multiple Dokku servers specified in env.json
, you can specify an environment by key with the env
argument.
gulp dokku:init [--env <env>]
Readies the Dokku server for deployment of the app by performing the following tasks:
gulp dokku:remote [--env <env>]
Creates a git remote for the Dokku server. This task is run automatically by dokku:init
, but is useful for adding a remote for an app that was initialized by another developer.
gulp dokku:deploy [--env <env>]
Deploys the application by pushing the current branch to the Dokku server.
gulp db:dump-local [--env <env>]
Dumps the database from the local Vagrant machine to the .tmp
directory.
gulp db:dump-remote [--env <env>] [--mariadb]
Dumps the database of the remote Dokku app to the .tmp
directory. The mariadb
flag provides legacy support for Kloadut's Dokku MariaDB plugin.
gulp db:push [--env <env>] [--mariadb]
Pushes the database from the local Vagrant machine to a remote Dokku app.
gulp db:pull [--env <env>] [--mariadb]
Pulls the database of the remote Dokku app to the local Vagrant machine.
gulp db:backup [--env <env>] [--mariadb]
Creates timestamped dumps of the databases from both the local Vagrant machine, and the remote Dokku app to the /databases
directory.
FAQs
A few opinionated gulp.js tasks for speeding-up deployment with Dokku.
The npm package dokku-gulp-tasks receives a total of 16 weekly downloads. As such, dokku-gulp-tasks popularity was classified as not popular.
We found that dokku-gulp-tasks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.