
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Library for pushing details(commits, tag, username, env) about the current app
Add this line to your application's Gemfile:
gem 'deployments'
And then execute:
$ bundle
Or install it yourself as:
$ gem install deployments
If you are using Rails 2 or non Rails gem you should add the next following code into Rakefile:
require 'deployments/gem_tasks'
At first you need to create in the config folder deployments.yml file with receiver server url and domains of different envs of your application:
options:
server: "your deployments server that will save build version"
development:
domain: "development.example.com"
api_key: "development api key"
staging:
domain: "staging.example.com"
api_key: "staging api key"
Add to your capistrano recipes the next following line, changing your_app_env to the deployment environment like 'staging' or 'development':
require 'deployments'
after 'deploy' do
run <<-CMD
rake deployments:push app_env=your_app_env
CMD
end
Request params:
{
{
:author => "author",
:commit_attributes => {
"commit id" => {
"message" => "Add readme file",
"created_at" => "2012-05-23 10:38:46 +0300"
},
"commit id" => {
"message" => "Change readme file",
"created_at" => "2012-05-23 10:39:18 +0300"
}
},
:env => "staging",
:version => "1.0.1",
:host_name => "staging.example.com"
},
:api_key => "account api key"
}
Also you can use capistrano recipes of the gem, you need to add:
require 'deployments/recipes'
It will add capistrano hook "after 'deploy'" for pushing deployment details to the server after deploy.
Now you can get request version.txt file from public folder, it will show the latest tag name of the project.
http://your-site/version.txt
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that deployments demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.