Page History
...
Use the following command to start the CodaLab server locally.
python manage.py runserver
Open a browser and navigate to http://127.0.0.1:8000
to preview the site.Multiexcerpt include nopanel true MultiExcerptName ExitDisclaimer PageWithExcerpt wikicontent:Exit Disclaimer to Include
When your next coding session comes along, remember to work in the virtual environment you created:
Windows
Code Block |
---|
venv\Scripts\activate |
Linux
Code Block |
---|
source venv/bin/activate |
Info |
---|
If you experience database errors try deleting the database file (\codalab\codalab\dev_db.*) and run syncdb again. After creating a new database be sure to run |
Start the Worker Roles
In order to test competitions and bundles locally, you'll need to run the compute worker roles. There are two worker.py
scripts that you will need to run.
- Open a command prompt and activate your CodaLab virtual environment.
Start the first compute worker as shown here:
Code Block cd codalab python worker.py
Open a second command prompt and activate your CodaLab virtual environment.
Start the second compute worker as shown here:
Code Block cd codalabtools\compute python worker.py
If you plan to test competitions locally, open a third command prompt and activate the virtual environment for the CodaLab CLI, then start the bundle server:
Code Block cl server