我正在尝试通过 webpacker 将 rails 与 react 集成,但我不知道如何@post = Post.all从控制器传入示例以响应组件道具。我必须通过api来做到这一点还是有其他方法??
嗨,我正在尝试通过乘客和apache2将我的rails应用程序部署到VPS,但是我收到了错误消息
[ W 2018-02-14 21:02:37.0342 9640/T1 age/Cor/CoreMain.cpp:969 ]: WARNING: potential privilege escalation vulnerability. Phusion Passenger is running as root, and part(s) of the passenger root path (/home/deploy/.rvm/gems/ruby-2.4.1@spelld.it/gems/passenger-5.2.0) can be changed by non-root user(s):
The path "/home/deploy/.rvm/gems/ruby-2.4.1@spelld.it/gems/passenger-5.2.0" can be modified by user "deploy" (or applications running as that user). Change the owner of the path to root, or avoid running Passenger as root.
The path "/home/deploy/.rvm/gems/ruby-2.4.1@spelld.it/gems/passenger-5.2.0" is writeable by any user (or application). Limit write access on the path to only …Run Code Online (Sandbox Code Playgroud)