{"id":15546098,"url":"https://github.com/vasuadari/rails-deploy","last_synced_at":"2025-03-29T01:16:52.500Z","repository":{"id":82227729,"uuid":"44609919","full_name":"vasuadari/rails-deploy","owner":"vasuadari","description":"Using ansible to deploy Rails app","archived":false,"fork":false,"pushed_at":"2015-10-28T08:13:18.000Z","size":160,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-09T13:02:58.118Z","etag":null,"topics":["ansible","deploy-rails","rails-deployment"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vasuadari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-20T13:57:24.000Z","updated_at":"2016-01-27T09:47:28.000Z","dependencies_parsed_at":"2023-03-07T13:11:03.039Z","dependency_job_id":null,"html_url":"https://github.com/vasuadari/rails-deploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasuadari%2Frails-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasuadari%2Frails-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasuadari%2Frails-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasuadari%2Frails-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vasuadari","download_url":"https://codeload.github.com/vasuadari/rails-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122391,"owners_count":20726823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","deploy-rails","rails-deployment"],"created_at":"2024-10-02T13:00:48.756Z","updated_at":"2025-03-29T01:16:52.480Z","avatar_url":"https://github.com/vasuadari.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Deploy Rails Application\n\nUsing ansible to deploy rails application. Additionally you can switch to different user if you\ndon't have direct ssh access to the remote server.\n\n## Requirements\n\nansible \u003e 1.9\n\n## Adding servers\n\nAdd hostnames inside inventory file under inventories path based on the environment.\n\n## Deployment configuration\n\ngroups/all:\n\n```\nssh_user: \"{{ ssh_user }}\"\n\nhome_path: \"{{ ansible_env.HOME }}\"\n\napplication_name: rails_app\n\n# Branch to deploy\nversion: master\n\n# Base directory where application resides\napplication_path: \"{{ home_path }}/{{ application_name }}\"\n\n# Path where shared directory resides\nshared_path: \"{{ application_path }}/shared\"\n\n# Path where all the releases directory resides\nreleases_path: \"{{ application_path }}/releases\"\n\n# Current release path\ncurrent_path: \"{{ application_path }}/current\"\n\ngit_repository_path: ''\n\n# Environment variable to be set on the remote servers\nenv_variables:\n  PATH: \"{{ home_path }}/bin:/usr/bin:/bin\"\n\nconfig_files:\n  - database.yml\n  - redis.yml\n  - secrets.yml\n  - solr.yml\n  - memcached.yml\n\n# Minimum no. of releases to maintain\nkeep_releases: 5\n\n```\n\nSet common deployment configurations in group_vars/all file. Use other files under\ngroup_vars for environment specific configurations.\n\n## Starting deployment\n\n```\nansible-playbook -i inventories/prod deploy.yml --extra-vars 'ssh_user=deploy'\n```\n\n**Note:** Use -K option to deploy other than ssh user.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasuadari%2Frails-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasuadari%2Frails-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasuadari%2Frails-deploy/lists"}