• Docs

›Getting started

Getting started

  • Installation
  • Configuration
  • Directory Structure
  • Commands

Commands

To take advantage of the commands alias you need load the profile file to your current shell:

$ source /environment/profile

Server Commands

Server

Initialize the service, starting all necessary containers.

$ server

Down

Stops the service, stopping all containers of the project.

$ down

Smtp

Starts the smtp container.

$ smtp

Node

Alias to use Node on project.

$ node

Assets

Aztlans provide a Webpack configuration to bundle your scripts, styles, fonts and images in two modes:

Development

Build assets on development mode and watch for changes:

$ assets-watch

Production

Build assets on production mode:

$ assets-build

Composer

Cli

Composer used by CLI.

$ cli-composer

Inc

Composer used to install PHP packages to inc.

$ inc-composer

WP

Composer used by Wordpress.

$ wp-composer

PHPQA

Composer used by PHPQA to install dependencies.

Code standard

Provides a collection of tools to improve your code quality.

PHPCBF

Fixing PHP errors automatically:

$ phpqa phpcbf

PHPCS

PHP Code Sniffer following the WordPress-Coding-Standards rules:

$ phpqa phpcs

JSLint

Run JavaScript linter following the @wordpress/eslint-plugin rules:

$ jslint

Stylint

Run Stylus linter:

$ stylint

Database

Export

Export the current state of database:

$ db-export

Reload

Reset database and load a MySQL dump from environment/initdb:

$ db-reload

Logs

Fpm

See logs from WordPress:

$ logs-fpm

Nginx

See logs from Server:

$ logs-nginx

i18n

Create a POT file on your current theme for internationalization:

$ i18n

WP CLI

Command line interface for WordPress. You can check here all availables commands.

$ wp plugin list

Deploy

Commands to generate and display the key used to deploy on server.

Keygen

Generate the key.

$ deploy-ssh-keygen

Retrieve the key

Retrieve the keys generated by previous command.

$ deploy-ssh-key

MailCatcher

Aztlans comes integrated with MailCatcher. You can access http://localhost:1080 to display in a web interface.

Docker Sync

Aztlans comes integrated with Docker Sync. More Informations soon.

Xdebug

Aztlans comes integrated with Xdebug. More Informations soon.

Webgrind

Xdebug profilinf viewer.

$ webgrind
← Directory Structure
  • Server Commands
    • Server
    • Down
    • Smtp
  • Node
  • Assets
    • Development
    • Production
  • Composer
    • Cli
    • Inc
    • WP
    • PHPQA
  • Code standard
    • PHPCBF
    • PHPCS
    • JSLint
    • Stylint
  • Database
    • Export
    • Reload
  • Logs
    • Fpm
    • Nginx
  • i18n
  • WP CLI
  • Deploy
    • Keygen
    • Retrieve the key
  • MailCatcher
  • Docker Sync
  • Xdebug
    • Webgrind
Powered By
Aztec Web

Aztec Web

Docs
Getting Started
More
GitHubStar
Copyright © 2022 Aztlan