Now that all your configuration is in place, rerun the {{railspkg}} package configuration to install necessary Ruby Gems and other server dependencies. On Debian-based systems:
~$ sudo dpkg-reconfigure {{railspkg}}
On Red Hat-based systems:
~$ sudo yum reinstall {{railspkg}}
You only need to do this manual step once, after initial configuration. When you make configuration changes in the future, you just need to restart Nginx for them to take effect.