RULES installation

Install and setup web server.
Post Reply
lukesan
Posts: 4
Joined: Mon Apr 10, 2017 3:40 pm

RULES installation

Post 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!
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: RULES installation

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
lukesan
Posts: 4
Joined: Mon Apr 10, 2017 3:40 pm

Re: RULES installation

Post 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.
lukesan
Posts: 4
Joined: Mon Apr 10, 2017 3:40 pm

Re: RULES installation

Post 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?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: RULES installation

Post 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
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
lukesan
Posts: 4
Joined: Mon Apr 10, 2017 3:40 pm

Re: RULES installation

Post 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.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: RULES installation

Post 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
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply