Skip to content

Instantly share code, notes, and snippets.

@aalin
Last active March 12, 2016 08:42
Show Gist options
  • Save aalin/c5694109fc99b48ba54c to your computer and use it in GitHub Desktop.
Save aalin/c5694109fc99b48ba54c to your computer and use it in GitHub Desktop.
# Put this in your project root and create a symlink from ~/.tmuxinator/projectname.yml
name: <%= File.basename(path, '.*') %>
root: <%=
begin
File.dirname(File.readlink(path))
rescue
puts "#{path} should be symlinked from your project root."
exit 1
end
%>
windows:
- docker:
layout: main-vertical
panes:
- "docker-compose up"
- api:
layout: main-vertical
panes:
- "cd web-api\nrails server -b 127.0.0.1 -p 2610"
- frontend:
layout: main-vertical
panes:
- "cd web-frontend\nAPI_HOST=http://127.0.0.1:2610 PORT=2600 npm run websdk:start"
- "cd web-frontend\nnpm run websdk:test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment