Automatic build versioning with the `date` command
Automate your build versioning by using the date command in your Rakefile to append a timestamp:
app.version = "1.1.1.#{`date +%V%u`}".strip
Try this shell commands:
Week of the year
$ date +%V
01
Day of the week
$ date +%u
3
Written by Rod Wilhelmy
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Versioning
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#