scud bomb
scud bomb

Reputation: 417

Nginx configuration

When I run

sudo mate /opt/nginx/conf/nginx.conf

my nginx.conf file opens but is blank, what did i do wrong?

trying to deploy my rails app to a ubuntu 10.04 lucid with passenger, nginx, and REE

Upvotes: 0

Views: 231

Answers (3)

littlepea
littlepea

Reputation: 1034

Are you sure you're not looking for:

sudo nano /etc/nginx/nginx.conf

on your server?

Upvotes: 0

Leonid Sobolievskyi
Leonid Sobolievskyi

Reputation: 84

You can check where you are with command:

$ uname -a

Upvotes: 1

JezC
JezC

Reputation: 1868

On which machine are you running "sudo mate ..."? If you're trying to deploy, you should be on the Ubuntu server. I suspect you're using a Mac for development and the command you've issued is to edit the local nginx installation on your Mac, not on the deployment server.

Upvotes: 1

Related Questions