Skip to content
Malouf Developer Docs

OnWatch

All things OnWatch

Getting started

  1. Inside the OnWatch directory terminal

run yarn to start things off. While that is doing its thing, head over to your web-env-dev-docker window.

$ yarn
  1. Inside web-env-dev-docker directory terminal

We’re going to get the docker container started. If you need more information about Docker and getting that all situated, click here

$ docker-compose up -d onwatch
  1. Back inside the OnWatch directory terminal we still need to install composer since this is an Obray site. You’ll need to enter the OnWatch Docker container first. Once inside, you then can proceed to install composer.
$ docker exec -ti onwatch bash
$ composer install

Afterwards, clear the terminal or cd back to the main OnWarch directory

  1. Installing global CSS

If you skipped ahead after this point you may have noticed that the site is pretty ugly. You still need to setup the global CSS.

$ cd assets
$ ln -s ../../assets global
  1. Finish off your setup

Run production to finish building your project.

$ yarn run production

Your OnWatch repo should be all setup now!

Development

During normal development, you’ll launch the local file with

$ yarn run dev

When you’re ready to push up your commits, now is when you’ll need some of those dist/ and theme/ files. To get the ones we need, you’ll need to run production

$ yarn run production

🎉

Extra fun stuff