Deployment Question
[there was an error on original submission of this post, so I did it again and duplicated it. this one can be deleted!]
[Please see this post](https://gorails.com/forum/deployment-question)

1
Servers
Deployment Question
Yeah. So there were several errors, some app-specific that others wouldn't have to deal with, but here's the one that probably matters:
```ruby
gem 'capistrano', '~> 3.1.0' -> gem 'capist...

7
Servers
Migration Issue caused Heroku to fail.
oh this error is the position of the paperclip method you need to have the has_attachment before the validation.

3
Servers
Non-rails, block ip address from nginx without logging to error.log?
Yep, pepkac will get you every time. I had log rotation on, but I've still burned through a large number of log files in last 3 weeks.
Also, in case anyone finds this [UFW](https://help.ubuntu....

5
Servers
rubber:passenger:add_to_pool takes forever
Weird! In any case, nginx and unicorn are awesome so you'll be in good hands with that setup as well.
I've had some weirdness with Passenger 5 myself and have reverted back to using Puma for now.

4
Servers
Links not working on production server
Congrats!! Glad you got it working even if it did take a few days ;-)
The first few setups I had with nginx had a bunch of the same problems. Eventually you start to realize what works and troub...

10
Servers
Deploy and delete text!
Can you provide more information on what exactly is being deleted. Is this your code base or data in the database? If you have some sort of callback in Capistrano that seeds the database upon dep...

3
Servers
Hosting static images in subdirectories of Public on nginx
I had a similar problem in the past with www-data and permissions on static assets out of the app's public folder. I did what Chris did and changed my Nginx user to deploy to alleviate the issue. ...

12
Servers
Creating & Installing SSL Certificate on DigitalOcean Ubuntu 14.04 VPS
Yeah that's a good idea to do self signed for staging since you can trust it. Nobody else will really be using it so that should work totally fine (and cheaper!)

8
Servers
404 Not Found after deploy to Ubuntu server
When Capistrano deploys your app, it saves a copy of each deploy into `releases`. When the deploy succeeds, it makes `current` a link to the latest release so that you can manage and rollback your ...

2
Servers
Nginx.conf failed
That would do it! Sometimes the file permissions or ownership will do that. I've often accidentally run a command as sudo without realizing it would change ownership of my app files and all of a su...

8
Servers
Capistrano deployment errors
This was a good find. But on a side note, in Ubuntu (and most debian based distros) the `ruby1.9.1-dev` package is installed ergo why you see it there. If you are running the `1.9.x` version of R...

7
Servers
Deploy Rails
Chris! I fixed my problem! How?
First! Open /etc/nginx/sites-enabled/default and comment location directory
It is my settings
server {
listen 80;
server_name www.artkiryan...

10
Servers
Passenger Spinning down in Production
Btw, in that link you sent it tells you what the default idle time is. `This option may only occur once, in the http configuration block. The default value is 300.` So it looks like 300 seconds o...

6
Servers
Getting a 403 on Ubuntu + Nginx
Your issue is coming because nginx is trying to search for index.html file into /home/deploy/apps/mll/current/public which is not present there. In order to fix, you will need to add passenger with...

4
Servers
rbenv: bundle: command not found
I agree. I think a submit an improvement piece would be helpful. It would allow others to add value to the already valuable resources you provide. Plus a lot of us have edge cases which we could...

16
Servers