Skip to content

Instantly share code, notes, and snippets.

@aesmail
Created April 15, 2013 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aesmail/5389263 to your computer and use it in GitHub Desktop.
Save aesmail/5389263 to your computer and use it in GitHub Desktop.
# controller
def create
user = User.create(params[:user])
respond_with(user, include: :extras)
end
# nginx conf
server {
listen 80;
server_name domain.com;
root /home/user/apps/rails_website/rails_app/public;
location / {
proxy_pass http://127.0.0.1:3005;
}
location /assets {
root /path/to/rails_app/public;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment