Never interpolate user input directly in a SQL statement.
Don't:
User.where("name = #{params[:search][:name]}")
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |
# /etc/systemd/system/rails-puma.service | |
# rvm wrapper default systemd rails | |
# systemctl enable rails-puma | |
# systemctl start rails-puma | |
[Unit] | |
Description=Rails Puma Webserver | |
Wants=network-online.target | |
After=network.target network-online.target | |
⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,