NOTE: if you are using the docker without the http://azk.io installed, use
docker
instead ofadocker
.
adocker kill $(adocker ps -q | tr '\r\n' ' ')
// JS usando ES6 | |
var chalk = require('chalk'); | |
var CliControllers = require('cli-router').CliControllers; | |
class Help extends CliControllers.Help { | |
index(params, cli) { | |
var usage = super.index(params, cli); | |
usage = this.colorizeSections(params, usage); | |
console.log(usage); | |
return 0; |
#!/usr/bin/env node | |
var Cli = require('cli-router').Cli; | |
var cli = new Cli({ | |
// Caminho para o arquivo de usage (seguindo o padrão do docopt. | |
path: path.join(__dirname, `usage.txt`), | |
// Diretório onde estão os controladores | |
controllers_root: path.join(__dirname, "controllers") | |
}); | |
cli |
NOTE: if you are using the docker without the http://azk.io installed, use
docker
instead ofadocker
.
adocker kill $(adocker ps -q | tr '\r\n' ' ')
use Mix.Config | |
# Configure your database | |
config :hello_phoenix, HelloPhoenix.Repo, | |
adapter: Ecto.Adapters.Postgres, | |
url: {:system, "DATABASE_URL"} |
** | |
* Documentation: http://docs.azk.io/Azkfile.js | |
*/ | |
// Adds the systems that shape your system | |
systems({ | |
"hello_phoenix": { | |
// Dependent systems | |
depends: ['postgres'], // postgres, mysql, mongodb ... | |
// More images: http://images.azk.io |
/** | |
* Documentation: http://docs.azk.io/Azkfile.js | |
*/ | |
// Adds the systems that shape your system | |
systems({ | |
"pyramid": { | |
// Dependent systems | |
depends: [], | |
// More images: http://images.azk.io |
<VirtualHost *:80> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. | |
#ServerName www.example.com |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /var/www; | |
index index.html index.php; | |
# Make site accessible from http://localhost/ | |
server_name localhost; |
# The container includes: | |
# | |
# azukiapp/ruby: | |
# * MRI Ruby 2.1.4 | |
# * Bundler | |
# * Image Magick | |
# | |
FROM azukiapp/node | |
MAINTAINER Azuki <support@azukiapp.com> |
/** | |
* Documentation: http://docs.azk.io/Azkfile.js | |
*/ | |
// Adds the systems that shape your system | |
systems({ | |
magnetis: { | |
// Dependent systems | |
depends: ["postgres", "redis", "elasticsearch"], | |
// More images: http://images.azk.io |