Diff for "Running"

Not logged in - Log In / Register

Differences between revisions 5 and 11 (spanning 6 versions)
Revision 5 as of 2009-08-03 15:31:45
Size: 2395
Comment:
Revision 11 as of 2009-08-13 20:48:06
Size: 2504
Editor: flyman
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
||<tablestyle="width: 100%;" colspan=3 style="background: #2a2929; font-weight: bold; color: #f6bc05;">This page will tell you:||
|| H
ow to build and run Launchpad on your own machine. [[Help|Ask for help]] right away if you run into problems. ||
||<tablestyle="width: 100%;" colspan=3 style="background: #2a2929; font-weight: bold; color: #f6bc05;">This page tells you how to build and run Launchpad on your own machine. [[Help|Ask for help]] right away if you run into problems. ||
Line 16: Line 15:
||<tablestyle="width: 100%;" colspan=3 style="background: #ff0000; font-weight: bold; color: #fff;">WARNING!||
||
'''DO NOT run the database setup script if you use Postgres for anything other than Launchpad!''' Running the database setup script below will destroy any Postgres databases on your system. (see [[DatabaseSetup]] for more)||
||<tablestyle="width: 100%;" colspan=3 style="background: #ff0000; font-weight: bold; color: #fff;">WARNING!||'''DO NOT run the database setup script below if you use Postgres for anything other than Launchpad!''' Running the script will destroy any Postgres databases on your system. (see [[DatabaseSetup]] for more)||
Line 41: Line 39:
Open up your local webbrowser and go to

http://launchpad.dev
Line 63: Line 65:


[[/LocalNetwork]] -> How to setup so you can use it from another PC

This page tells you how to build and run Launchpad on your own machine. Ask for help right away if you run into problems.

Note: Launchpad does not work on Karmic yet! There is currently a hard dependency on python2.4, but we aim to fix this before Karmic is released. Launchpad developers are currently using Jaunty. If you wish to live on the bleeding edge, there are some initial notes at LaunchpadOnKarmic, but do not expect this to be fully working yet.

Building

Assuming you have already gotten the Launchpad source code, here's how to build a pristine trunk (devel) instance. First, be in the top level of the source code:

  $ cd devel

Before you can run Launchpad for the first time, you need to set up Postgres.

WARNING!

DO NOT run the database setup script below if you use Postgres for anything other than Launchpad! Running the script will destroy any Postgres databases on your system. (see DatabaseSetup for more)

  $ ./utilities/launchpad-database-setup $USER

(Please have read the previous comment before you run the above command!)

Finally, build the database schema:

  $ make schema

Running

Now you should be able to start up Launchpad:

  $ make run

For subsequent builds, you can just do make run right away. You don't need to do make schema every time, and you should avoid it because it's expensive and because it will clean out any data you might have put into your test instance (through the web UI or by running other scripts).

Open up your local webbrowser and go to

http://launchpad.dev

Now try logging into your locally-running Launchpad, using the default username and password:

  username: admin@canonical.com
  password: test

Stopping

You can stop Launchpad by doing a Control-C in the terminal where you started it:

  ^C
  [...shutting down Launchpad...]
  $ 

Or you can be at a prompt in the same directory and run this:

  $ make stop

/LocalNetwork -> How to setup so you can use it from another PC

Running (last edited 2022-04-29 18:53:15 by jugmac00)