# ~/.tmuxinator/blog.yml

name: blog
root: ~/blogs/paulfioravanti.github.io

on_project_first_start:
  - bundle install
  - bundle update
  - open --background https://analytics.google.com/analytics
  - open --background https://paulfioravanti.disqus.com
  - open --background http://localhost:4000
  # Grip
  - open --background http://localhost:6419

# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
pre_window:
  - asdf local ruby 2.5.0
  - asdf local nodejs 9.6.1

# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
startup_window: editor

windows:
  - editor: vim
  - guard: bundle exec guard
  - server: bundle exec jekyll liveserve --drafts
  - grip: grip

# ~/.tmuxinator/blog.yml

<% jekyll_port = 5000 %>
<% grip_port = 6419 %>

name: blog
root: ~/blogs/paulfioravanti.github.io

on_project_first_start:
  - bundle install
  - bundle update
  - open --background https://analytics.google.com/analytics
  - open --background https://paulfioravanti.disqus.com
  # Jekyll server
  - open --background http://localhost:<%= jekyll_port %>
  # Grip server
  - open --background http://localhost:<%= grip_port %>

# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
pre_window:
  - asdf local ruby 2.5.0
  - asdf local nodejs 9.6.1

# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
startup_window: editor

windows:
  - editor: vim
  - guard: bundle exec guard
  - server: bundle exec jekyll liveserve --drafts --port <%= jekyll_port %>
  - grip: grip

Change Jekyll server port so it doesn't conflict with Phoenix
Change Jekyll server port so it doesn't conflict with Phoenix
