Hey, i am in the process of writing a generalised deployment script that includes the possibility to fully automatically deploy:
1) a development environment running sqlite3, ruby and rails in a very basic installation and the loading of sample data using also rbenv to configure rails and ruby versions and all dependencies for a minimal setup (nodejs, libvips,…)
2) a staging environment including postgre, nginx with a reverse proxy configuration and fully automatically deploy of also the SSL certificates on nginx
3) a production environment including all of 2 plus redis and full caching configuration.
The goal of the script is to normalize the environment (including ruby and rails versions) given the outcome variability of the environment and the impact that it has on the end result.
A very basic version of the script is attached below here and it’s right now work in progress.
Is anybody interested in having this documented inside the guides?