Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ Assumes that `code.djangoproject.com` and `djangoproject.com` are stored in the
same directory (adjust paths if needed).

1. Copy the generated CSS:
``cp ../djangoproject.com/static/css/*.css trac-env/htdocs/css/``
2. Copy _utils.scss (needed by trackahacks.scss):
``cp ../djangoproject.com/static/scss/_utils.scss scss/``
``cp ../djangoproject.com/djangoproject/static/css/*.css trac-env/htdocs/css/``
2. Copy _utils.scss (needed by trachacks.scss):
``cp ../djangoproject.com/djangoproject/static/scss/_utils.scss scss/``
3. Copy the javascript directory:
``cp -rT ../djangoproject.com/static/js trac-env/htdocs/js``
4. Compile trackhacks.scss:
``make compile-scss``
``cp -rT ../djangoproject.com/djangoproject/static/js trac-env/htdocs/js``
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The T option didn't worked for me, did it worked for you like that @kehach07 ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sabderemane,

Yes, it worked on my setup. I believe the -rT option was already present before my changes, so I kept it as is.

From what I understand, -T treats the destination as a normal path instead of creating an additional nested directory. If -T is not working on your environment, we could use an alternative such as:

cp -r ../djangoproject.com/djangoproject/static/js/* trac-env/htdocs/js/

or

cp -r ../djangoproject.com/djangoproject/static/js/. trac-env/htdocs/js/

which should copy the contents into the destination directory without relying on the -T flag.

Let me know what you think.

4. Compile trachacks.scss::
docker compose exec trac make compile-scss
docker compose restart trac

How to recreate `trac.sql` after upgrading Trac
-----------------------------------------------
Expand Down