对比下rake secret前后的结果就知道了嘛
rake secret前:
# Be sure to restart your server when you modify this file.
# Your secret key for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
Rabel::Application.config.secret_token = ENV['SECRET_TOKEN']
rake secret后:
# Be sure to restart your server when you modify this file.
# Your secret key for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
Rabel::Application.config.secret_token = 'a983e6bd6bf8887301c27220b46ec936bf9ef85de195da7f535a8a5d937f4cdb840dcd69e6b54a8cf894a117bbc3de5ba45b806bbaba5d022e611c789d3ffeca'
checkout 这个项目下来的时候 secret_token 实质上是环境变量中的 Secret Token,但是你当时肯定没有设置过,长度为 0,< 30,所以报错了。rake secret后重新替你生成了这个文件,自然就符合要求了。