Commands

Running Commands Inside Docker

Since everything is dockerised. All commands should be run through docker-compose. Remember to run these within the projects working directory.

To run a command;

docker-compose run --service-ports sg {command-goes-here}

Common Commands

NPM Commands

When you wish to run StaticGenie NPM commands. Use the following command:

docker-compose run --service-ports sg npm run {commands-below}.

Available NPM Commands

Common / Dev

Runners

Locating NPM Commands

In the event the docs aren’t up to date and/or a command isn’t doing what you want it to. You can check the commands by opening /package.json to see/modify the StaticGenie commands.

Troubleshooting

Trying to access the built in server via http://127.0.0.1:8080/ times out.

You have likely missed the --service-ports part of the docker-compose run command. Without it the adhock command to the docker container won’t open/map ports. The full command should look like: docker-compose run --service-ports sg npm run {npm-command-here}