I hereby claim:
- I am bawerd on github.
- I am bawerd (https://keybase.io/bawerd) on keybase.
- I have a public key ASD0uuNDxfyihdGHQ7VbP4-ufOKapk4NRZzgx14L68m-Bgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The objective of this post is to get people up and running with SmartOS with enough development tools to do some C/C++ and NodeJS development and take advantage of some amazing tools available only on this platform.
In my case the killer app available on SmartOS is DTrace, which enables me to peak inside a running nodejs application and observe various aspects of it's operation.
In my case I normally use the VMWare version of dtrace, this can be downloaded from SmartOS Download Page.
Once downloaded this just needs to be copied to your Documents/Virtual Machines
folder and launched by double clicking on the file.
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D | |
rails_env = ENV['RAILS_ENV'] || 'production' | |
# 16 workers and 1 master | |
worker_processes (rails_env == 'production' ? 16 : 4) | |
# Load rails+github.git into the master before forking workers | |
# for super-fast worker spawn times | |
preload_app true |
bash -c ' | |
<% if knife_config[:bootstrap_proxy] -%> | |
( | |
cat <<'EOP' | |
<%= "proxy = #{knife_config[:bootstrap_proxy]}" %> | |
EOP | |
) > ~/.curlrc | |
<% end -%> | |
if [ ! -f /usr/bin/chef-client ]; then |
server { | |
listen 80 default; | |
server_name 192.168.0.34 localhost; | |
server_tokens off; | |
root /home/nginx/$host/web; | |
index app.php index.php index.html; | |
access_log /home/nginx/$host/app/logs/access.log; | |
error_log /var/log/nginx/error.log; | |
try_files $uri $uri/ @rewrite; |
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} | |
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { | |
expires max; | |
log_not_found off; | |
} |