Page 1 of 1

RULES installation

Posted: Mon Apr 10, 2017 3:55 pm
by lukesan
Hi all!
I'm new to RULES and I'm trying to use it in production.
Our System Engineer installed it on a linux server, it runs but I can't find out how to create and manage a project.
Any help would be precious...
Thanks in advance!

Re: RULES installation

Posted: Tue Apr 11, 2017 9:45 am
by timurhai
Rules has no own database.
It is like a special file browser.
You should create project on your file server with a special (customizable) folders structure.
Then you can browse it, like in an example:
http://rules.cgru.info/#/CG_PROJECT/SCE ... /A_SHOT_01

CG_PROJECT/SCENES/A_SCENE/A_SHOT_01
- is a real folders on a file server.

Then you should point Rules to the place where your projects root located, relative to the CGRU root folder (your web server should have an access to it.)
https://github.com/CGRU/cgru/blob/maste ... al.json#L2
If you mount projects root somewhere not in cgru, and just link it in cgru, you should specify this link.

rules.00_general.json is a general setup file, you should not modify it, to create local overrides you should create some:
http://data.cgru.info/cgru/rules/rules.20_local.json
That will contain your company setup.

Re: RULES installation

Posted: Tue Apr 11, 2017 1:20 pm
by lukesan
Hi Tumur!
Thank you so much for the quick answer, just going to correct the workflow as you suggested.
I'll give some feedback here.

Re: RULES installation

Posted: Wed May 10, 2017 1:52 pm
by lukesan
Hi Timur!
Here is the error we get when trying to create a folder:

#66 15:55:44.176: Error: Unable to create directory /rules_root//ddd
#65 15:55:44.175: recv 21 (0) : {"error":"Unable to create directory \/rules_root\/\/ddd"}
#64 15:55:44.050: send 21 (1) : {"makefolder":{"path":"/rules_root//ddd"}}
#63 15:55:37.762: recv 19 (0) : {"groups":["admins"],"users":["admin"]}

What's going on?

Re: RULES installation

Posted: Thu May 11, 2017 11:38 am
by timurhai
Hi.
May some permissions problem?
Try to see server logs. PHP mkdir() function can print error reason:
https://github.com/CGRU/cgru/blob/master/rules.php#L789

Re: RULES installation

Posted: Thu May 11, 2017 11:46 am
by lukesan
timurhai wrote:
Thu May 11, 2017 11:38 am
Hi.
May some permissions problem?
Try to see server logs. PHP mkdir() function can print error reason:
https://github.com/CGRU/cgru/blob/master/rules.php#L789
rules_root has permission 777.

Re: RULES installation

Posted: Thu May 11, 2017 12:27 pm
by timurhai
O.
This is not permissions, but setup problem.
It tries to create /rules_root/... folder.
Note, that it is located in the system root.

What do you see after the site setup?
You should see this folders structure:
https://github.com/CGRU/cgru/tree/master/rules_root