the problem:
subl somefile
zsh: correct 'subl' to 'ul' [nyae]? n
node -v
zsh: correct 'node' to 'od' [nyae]? n
v0.8.16
| description "Myapp web application" | |
| start on starting myapp | |
| stop on stopping myapp | |
| respawn | |
| exec su - myapp -c 'cd /var/www/myapp/current/ && bundle exec unicorn -c ./config/unicorn.rb --env production >> /var/log/myapp/web.log 2>&1' |
| upstream myappname { | |
| server unix:/var/run/myappname/web.sock fail_timeout=0; | |
| } | |
| server { | |
| server_name .oldappname.com; | |
| rewrite ^ http://myappname.com$request_uri? permanent; | |
| } | |
| server { |
| user www-data www-data; | |
| worker_processes 1; # 1 per core | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| use epoll; | |
| } | |
| http { |
| description "NGINX http daemon" | |
| start on runlevel [2345] | |
| stop on runlevel [016] | |
| env DAEMON=/usr/sbin/nginx | |
| env PID=/var/run/nginx.pid | |
| pre-start script | |
| mkdir -p /var/log/nginx |
| cat << EOF > ~/.gemrc | |
| install: --no-rdoc --no-ri | |
| update: --no-rdoc --no-ri | |
| EOF |
the problem:
subl somefile
zsh: correct 'subl' to 'ul' [nyae]? n
node -v
zsh: correct 'node' to 'od' [nyae]? n
v0.8.16
To open files and folders from your command-line you need to add Sublime Text 2 to your path.
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/bin/sublAnd then...
subl ~/mysitedir| var AppRouter = Backbone.Router.extend({ | |
| routes: { | |
| "appointments/:id": "show" | |
| }, | |
| show: function(id){ | |
| console.log("heyo we're in show with id %d", id); | |
| } | |
| }); |