简体   繁体   中英

Running stand-alone Rails script

I'm submitting a bug report to jsonapi-resources . Their issue template asks that I create a MCVE using their template . This looks like a self-contained script for a rails-based project. I've only ever run similar code as an actual rails project with separate files and using rails server . My question is, how do I run this self-contained script?

I ran it with

ruby <filename>

It seems to programmatically install gems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM