简体   繁体   中英

OpenCPU server root directory

What directory does the single-user OpenCPU server serve from, and if I have a webpage that uses OpenCPU JavaScript code, how do I make it run on my server? I want to avoid using CORS.

I've tried fooling around with .opencpu.conf , but no luck - there isn't anything there that specifies the server path, except for "appspaths" , changing which doesn't affect anything.

Further, as a side question - has anybody attempted installing the OpenCPU cloud server on Arch, and is the process more or less straightforward?

Thanks, cheers.

You need to put your code into the inst dir of an R package and install that on your server. See one of the example apps which are live here: https://www.opencpu.org/apps.html

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