Couple of scripts for easy (Rails + Puma + Nginx) server setup.
Clone the repo to you home directory:
git clone https://github.com/toschaslabs/pronto ~/pronto
Make the script executable by running:
cd ~/pronto
chmod +x ./install.sh
Finally, run the installation script:
./install.sh
Before running the application setup script, you should be aware of some assumptions that app_setup.rb
script makes:
-
you are deploying Rails API application and separate client application;
-
you are using Capistrano for deploying Rails application;
-
you are planning to use upstart jungle-tools for managing Puma.
cd ~/pronto
ruby app_setup.rb
install.sh
contains commands for:
-
updating Ubuntu system dependencies (
apt-get update
); -
installing other necessary libraries (see installing dependencies in
install.sh
); -
installing PostgreSQL server;
-
installing rbenv;
-
installing various rbenv plugins:
-
installing Ruby v2.2.1 (for general purpose);
-
removing default Nginx config from
/etc/nginx/sites-enabled/
; -
downloading Puma upstart jungle-tools.
Pronto is free software, and may be redistributed under the terms specified in the LICENSE file.