Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

Building my first addon #2

Open
@mintyPT

Description

@mintyPT

I'm trying to build a simple add-on just to test the waters. As such, I've been following a tutorial and reading the code for a couple of addons including the ones on the repo.

I managed to add an entry to the menu and create a react screen. Then I wanted to do a git clone inside the virtual machine but seems something does not work anymore.

I try to do it this way:

let site = this.props.sites[this.props.params.siteID]

let command = `"${context.environment.dockerPath}" exec ${site.container} git clone https://github.com/JeremyEnglert/JointsWP.git app/public/wp-content/themes/JointsWP`

childProcess.exec(command, { env: context.environment.dockerEnv }, cb);

The command executed is this one (for my case):

"/Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker" exec 496ce3fd7359ae48d9fa5c3ece296f2992d841ca5da401114f84c8e906839a58 git clone https://github.com/JeremyEnglert/JointsWP.git app/public/wp-content/themes/JointsWP

But sadly, I get the following response: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Any idea why? I tried the stats add-on and it's not working either. Might be the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions