[GH-ISSUE #659] Symlinks to plugin static files missing #617

Closed
opened 2026-02-27 11:12:41 +03:00 by kerem · 4 comments
Owner

Originally created by @smarek on GitHub (Dec 15, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/659

Hi,

in order to get the web interface running, I had to make symlinks for static files of plugins.

I've installed the modoboa using pip, pointed /sitestatic to /usr/local/lib/python2.7/dist-packages/modoboa/static and had to add symlinks for plugins I've enabled.

Is this somewhere in documentation and I just haven't found that?

Thanks

Eg.

0 lrwxrwxrwx  1 root staff   32 Dec 14 23:46 admin -> ../extensions/admin/static/admin
0 lrwxrwxrwx  1 root staff   29 Dec 14 23:42 bootstrap -> ../bower_components/bootstrap
0 lrwxrwxrwx  1 root staff   36 Dec 14 23:42 bootstrap-select -> ../bower_components/bootstrap-select
0 lrwxrwxrwx  1 root staff   19 Dec 15 07:01 core -> ../core/static/core
4 drwxr-sr-x  2 root staff 4096 Dec 14 22:57 css
0 lrwxrwxrwx  1 root staff   22 Dec 14 23:42 d3 -> ../bower_components/d3
0 lrwxrwxrwx  1 root staff   53 Dec 14 23:42 eonasdan-bootstrap-datetimepicker -> ../bower_components/eonasdan-bootstrap-datetimepicker
0 lrwxrwxrwx  1 root staff   32 Dec 14 23:42 font-awesome -> ../bower_components/font-awesome
0 lrwxrwxrwx  1 root staff   26 Dec 14 23:42 jquery -> ../bower_components/jquery
0 lrwxrwxrwx  1 root staff   29 Dec 14 23:42 jquery-ui -> ../bower_components/jquery-ui
4 drwxr-sr-x  3 root staff 4096 Dec 14 22:57 js
0 lrwxrwxrwx  1 root staff   26 Dec 14 23:42 moment -> ../bower_components/moment
4 drwxr-sr-x  2 root staff 4096 Dec 14 22:57 pics
0 lrwxrwxrwx  1 root staff   32 Dec 15 07:10 stats -> ../extensions/stats/static/stats
Originally created by @smarek on GitHub (Dec 15, 2014). Original GitHub issue: https://github.com/modoboa/modoboa/issues/659 Hi, in order to get the web interface running, I had to make symlinks for static files of plugins. I've installed the modoboa using `pip`, pointed `/sitestatic` to `/usr/local/lib/python2.7/dist-packages/modoboa/static` and had to add symlinks for plugins I've enabled. Is this somewhere in documentation and I just haven't found that? Thanks Eg. ``` 0 lrwxrwxrwx 1 root staff 32 Dec 14 23:46 admin -> ../extensions/admin/static/admin 0 lrwxrwxrwx 1 root staff 29 Dec 14 23:42 bootstrap -> ../bower_components/bootstrap 0 lrwxrwxrwx 1 root staff 36 Dec 14 23:42 bootstrap-select -> ../bower_components/bootstrap-select 0 lrwxrwxrwx 1 root staff 19 Dec 15 07:01 core -> ../core/static/core 4 drwxr-sr-x 2 root staff 4096 Dec 14 22:57 css 0 lrwxrwxrwx 1 root staff 22 Dec 14 23:42 d3 -> ../bower_components/d3 0 lrwxrwxrwx 1 root staff 53 Dec 14 23:42 eonasdan-bootstrap-datetimepicker -> ../bower_components/eonasdan-bootstrap-datetimepicker 0 lrwxrwxrwx 1 root staff 32 Dec 14 23:42 font-awesome -> ../bower_components/font-awesome 0 lrwxrwxrwx 1 root staff 26 Dec 14 23:42 jquery -> ../bower_components/jquery 0 lrwxrwxrwx 1 root staff 29 Dec 14 23:42 jquery-ui -> ../bower_components/jquery-ui 4 drwxr-sr-x 3 root staff 4096 Dec 14 22:57 js 0 lrwxrwxrwx 1 root staff 26 Dec 14 23:42 moment -> ../bower_components/moment 4 drwxr-sr-x 2 root staff 4096 Dec 14 22:57 pics 0 lrwxrwxrwx 1 root staff 32 Dec 15 07:10 stats -> ../extensions/stats/static/stats ```
kerem closed this issue 2026-02-27 11:12:41 +03:00
Author
Owner

@tonioo commented on GitHub (Dec 15, 2014):

It looks like you forgot to add the '--collectstatic' to the deploy command.

<!-- gh-comment-id:66996646 --> @tonioo commented on GitHub (Dec 15, 2014): It looks like you forgot to add the '--collectstatic' to the deploy command.
Author
Owner

@smarek commented on GitHub (Dec 15, 2014):

That's certainly true, is it possible to link the statics afterwards, without re-installing the instance?

<!-- gh-comment-id:67011014 --> @smarek commented on GitHub (Dec 15, 2014): That's certainly true, is it possible to link the statics afterwards, without re-installing the instance?
Author
Owner

@tonioo commented on GitHub (Dec 15, 2014):

Of course. Go the instance directory, load your virtualenv if necessary and run :

$ python manage.py collectstatic
<!-- gh-comment-id:67012332 --> @tonioo commented on GitHub (Dec 15, 2014): Of course. Go the instance directory, load your virtualenv if necessary and run : ``` bash $ python manage.py collectstatic ```
Author
Owner

@smarek commented on GitHub (Dec 16, 2014):

Thank you a lot, I'll dig through manage.py more before asking nex time.

<!-- gh-comment-id:67154317 --> @smarek commented on GitHub (Dec 16, 2014): Thank you a lot, I'll dig through manage.py more before asking nex time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#617
No description provided.