Created
September 21, 2018 14:56
-
-
Save RyanMulready/3fc887d4886ec76b89fd292fdd57f4d4 to your computer and use it in GitHub Desktop.
My Procfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
django: es-site/es/manage.py runserver 0.0.0.0:8000 | |
compass: compass watch es-site/es/es/static | |
mail: maildev | |
log: tail -f local_es.log | |
storybook: yarn --cwd es-site/selfserve/ styleguide |
Also, I have a build task set up in VS Code, which means I can start my local server with Command+Shift+B
:
{
"version": "2.0.0",
"tasks": [
{
"label": "overmind",
"type": "shell",
"command": "(. venv/bin/activate; overmind start -l django,bsync,sass,mail)",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
I should not I'm using hivemind
not overmind
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's my
Procfile
, followed by instructions on how to use it.This lives in the parent directory of
es-site
. I use overmind to run it; you can also use the lighter-weight hivemind.Dependency installation on a Mac:
Start all processes with
overmind start
, or selectively start with-l
flag:The ports are set up so that you can use http://localhost:8000 as usual. The page should reload on HTML and JS changes, while SASS changes should be injected without a reload. With some additional work, I think it's possible trigger a page reload when
runserver
reloads.Worth noting that I've changed my Django logging configuration to write to the console, instead of
local_es.log
, which is why I didn't run thelog
process.As I mentioned, I'd like to get this into the repo, as a baseline for local dev, especially for folks like Phil, Tommy, and interns that likely won't want to customize their environment.