Skip to content
This repository was archived by the owner on Mar 20, 2019. It is now read-only.

Commit 41438c4

Browse files
committed
Updated script/ide to add clock
1 parent 77dfe0f commit 41438c4

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

script/ide

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Define session name
44

55
SESSION=coderwall
66

77
# Go to working directory
88

9-
cd ~/assemblymade/coderwall
9+
#cd ~/assemblymade/coderwall
1010

1111
vagrant up --no-provision
1212

@@ -27,7 +27,8 @@ tmux -2 new-session -d -s $SESSION
2727
# Create windows
2828
tmux new-window -t $SESSION:1 -n "code"
2929
tmux new-window -t $SESSION:2 -n "web"
30-
tmux new-window -t $SESSION:3 -n "background jobs"
30+
tmux new-window -t $SESSION:3 -n "sidekiq"
31+
tmux new-window -t $SESSION:4 -n "clock"
3132

3233
# Define window roles
3334

@@ -50,12 +51,17 @@ tmux select-pane -t 0
5051
#tmux send-keys "clear ; env bin/rails server webrick -p3000" C-m
5152
tmux send-keys "clear ; bundle exec puma -C ./config/puma.rb" C-m
5253

53-
# Background Jobs
54+
# Sidekiq
5455
tmux select-window -t $SESSION:3
55-
5656
tmux select-pane -t 0
5757
tmux send-keys "clear ; bundle exec sidekiq -C ./config/sidekiq.yml" C-m
5858

59+
# Clock
60+
tmux select-window -t $SESSION:4
61+
tmux select-pane -t 0
62+
tmux send-keys "clear ; bundle exec clockwork app/clock.rb" C-m
63+
64+
5965
# Set the initial working window
6066
tmux select-window -t $SESSION:1
6167

0 commit comments

Comments
 (0)