Naviga Web
Docs Home
  • Introduction
  • Release notes
  • Starter kit
    • Introduction
    • Environment Variables
    • Makefile
    • Changelog
    • API
  • Feature: Advanced Search
    • User guide
    • Search Help
    • How to Setup
    • Technical Details
  • Developer documentation
    • Developer prerequisites
      • Developer hardware suggestions
      • Setup on Windows
      • Setup on Linux/Ubuntu
    • Getting started with development
      • Composer package management
      • Gulp and asset building (optional)
      • Git
      • Hosts file
      • Certificate
      • Initiate Naviga Web
      • Start Naviga Web
      • Bin scripts
      • Create theme
      • Environments
      • Deployment
      • Onboarding tasks
        • #0 - New site
        • #1 - Configuration
        • #2 - Front page
        • #3 - Content presentation
        • #4 - OC List
        • #5 - Content containers
        • #6 - Teaser template
        • #7 - Single article
        • #8 - Widget
        • #9 - Custom task
        • #10 - Feedback
    • Architecture
    • Paywall and authentication
      • CloudFront Paywall
      • Engage paywall
      • Lua Paywall (deprecated)
    • Project management: A typical project
    • Database dump
    • Debugging
    • Keep your project up-to-date
    • Gulp and Sass
    • Domain mapping
    • Widgets overview
  • Starter kit packages
    • Base package
      • Changelog
    • Boards plugin (EveryBoard)
      • Installation
      • Setup
      • Board Widgets
        • Linked board
        • Template board
        • Embed widget
        • OC List item
        • Content container
      • Teaser templates
      • Actions and filters
      • Export - import
      • Changelog
    • ContentSync plugin
      • Usage
      • Changelog
    • Drop In Plugins package
      • Changelog
    • Everyware plugin
      • Installation
      • Setup
      • Actions and filters
      • Fetching lists and their content
      • Sorting
      • Widgets
      • Changelog
    • Imengine package
      • Helper class: Imengine
      • Changelog
    • NewsML package
      • Idf Parser
      • Changelog
      • Usage
    • NGINX conf package
      • API
      • Changelog
      • Usage
    • Presentation Preview plugin
      • API
      • Changelog
      • Usage
    • Support package
      • Changelog
    • Theme EU resources package*
      • Changelog
    • Theme US resources package
      • Changelog
    • Twig package
      • Development
        • Filters
          • class_string
          • spacey
          • trim_array
        • Functions
          • php_function
          • php_method
          • render_classes
          • render_partial
        • Operators
          • contains
      • Helper classes
        • View
        • ViewSetup
      • Changelog
  • Widgets and component packages
    • Article List widget
      • Installation
      • Using Article List
      • Changelog
    • Menu handler
      • Usage
      • Changelog
    • Section Header widget
      • Changelog
    • Social media icons widget
      • Installation
      • Changelog
    • Google Analytics plugin
      • Set up Google Analytics
      • Most read widget
      • Changelog
    • Redirect Original URLs plugin
      • Installation
      • Changelog
    • Settings Parameters plugin
      • Installation
      • Usage
      • Changelog
  • Design and theme packages
    • Base theme 1
      • Changelog
    • Base theme 2
      • Colors
      • Fonts
      • Header
      • Menus
      • Pages with Board
      • Sidebars
      • Teaser layouts
      • Article page (text)
      • Article page (embeds)
      • Changelog
    • Example theme
      • Changelog
  • MU Plugins
    • Project Plugin
      • Installation
      • Changelog
    • Starter Package Catalyst
    • Concepts
      • Admin Pages
        • All Concepts
        • Add New Concept
        • Types
        • Errors
        • Concept duplicates
      • API
      • Console
      • Changelog
    • Network
      • Changelog
    • Cache Invalidator
      • Getting Started & WP admin
      • Implementation of Lua endpoint
      • Filters
      • Changelog
    • RSS Feeds
      • Setup
      • Administration pages
      • Changelog
  • Services
    • Imengine
    • Imengine documentation
    • Open Content
    • Writer Bookmarklet
Powered by GitBook
On this page
  • Usage
  • Commands

Was this helpful?

  1. Starter kit

Makefile

We have a Makefile that can be used to handle docker commands and other utilities. This section covers the available commands and how to use it.

Usage

make [command]

Some commands like composer, npm or gulp offers a way to run commands through a docker container. In these cases any following "make commands" will be used as part of the arguments sent to its respective command.

Running make composer install will in turn trigger:

docker run <php-fpm_container> composer install

Running make npm install will in turn trigger:

docker run <navigaweb-node-builder_container> npm install

Commands

Name

Description

alt-composer

Offers a way to run the project with an alternative composer config.

build

build-start

Will run build and start in sequential order

composer

Will run the composer <args> command using the currently set php-fpm container

init

Kick start the project and install all you need

luarocks

Install all lua dependencies.

mysql-switch-startup

Will switch the current startup.sql file with the one chosen by the prompt

mysql-dump

Dump content from current MYSQL container

mysql-remove

Removes the MySQL container.

mysql-restore

Restore a given MySQL dump file

npm

Will run the npm <args> command using the navigaweb-node-builder container

gulp

Will run the gulp <args> command using the navigaweb-node-builder container

nginx-restart

Will restart the nginx in openresty container

prod-init

Run init in production mode

pull

Download latest version of Docker containers

redis-flush

Flush redis container (e.i remove all keys)

remove

Removes all containers except MySQL

restart

Restarts all Docker containers for project

restart-full

Will run stop, remove, pull, start in sequential order

self-update

Upgrade project StarterKit standard to latest version

stage-init

Run init in stage mode

start

Starts all Docker containers for project

stop

Stops all Docker containers for project

wp-install

Install WordPress

wp-remove

Remove the part of WordPress that should not be versioned

wp-update-salt

Updates WordPress salt

PreviousEnvironment VariablesNextChangelog

Last updated 3 years ago

Was this helpful?

Will run

Read more about what a Makefile is

here
docker-compose build