Socorro/SocorroUI/Installation: Difference between revisions

 
(3 intermediate revisions by 2 users 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 117: Line 129:
Example config:
Example config:
[http://code.google.com/p/socorro/source/browse/trunk/webapp-php/docs/rawdumps.mod_rewrite.txt webapp-php/docs/rawdumps.mod_rewrite.txt]
[http://code.google.com/p/socorro/source/browse/trunk/webapp-php/docs/rawdumps.mod_rewrite.txt webapp-php/docs/rawdumps.mod_rewrite.txt]
Next, update the $config['raw_dump_url'] value in application/config/application.php to point to the proper directory.


= Web Services =
= Web Services =
Line 124: 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