Socorro/SocorroUI/Installation: Difference between revisions

 
(2 intermediate revisions by one other user not shown)
Line 21: Line 21:
  INSERT INTO product_visibility (productdims_id, start_date, end_date, featured)  
  INSERT INTO product_visibility (productdims_id, start_date, end_date, featured)  
  VALUES (1, '2010-11-05', '2011-02-05', true);
  VALUES (1, '2010-11-05', '2011-02-05', true);
</code>
Create the sessions table for Kohana:
<code>
CREATE TABLE sessions (
    session_id varchar(127) NOT NULL,
    last_activity integer NOT NULL,
    data text NOT NULL,
    CONSTRAINT session_id_pkey PRIMARY KEY (session_id),
    CONSTRAINT last_activity_check CHECK (last_activity >= 0)
);
</code>
</code>


Line 126: Line 138:
== Middleware ==
== Middleware ==


Copy the scripts/config/webservices.py file, edit it accordingly and execute the script to listen on the indicated port.
Copy the scripts/config/webapiconfig.py file, edit it accordingly and execute the script to listen on the indicated port.


<code>
<code>
  cp scripts/config/webservices.py-dist scripts/config/webservices.py
  cp scripts/config/webapiconfig.py-dist scripts/config/webapiconfig.py.py
  vim scripts/config/webservices.py
  vim scripts/config/webapiconfig.py
  python scripts/webservices.py 8083
  python scripts/webservices.py 8083
</code>
</code>
Confirmed users
67

edits