Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
17b73af6
Verified
Commit
17b73af6
authored
2 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Run Vite dev server together with DEBUG runuwsgi
parent
d81dfc30
No related branches found
No related tags found
1 merge request
!1132
Resolve "Evaluate use of Vite instead of Webpack"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/core/management/commands/vite.py
+7
-2
7 additions, 2 deletions
aleksis/core/management/commands/vite.py
aleksis/core/settings.py
+1
-0
1 addition, 0 deletions
aleksis/core/settings.py
with
8 additions
and
2 deletions
aleksis/core/management/commands/vite
_bundle
.py
→
aleksis/core/management/commands/vite.py
+
7
−
2
View file @
17b73af6
...
@@ -11,6 +11,10 @@ from ...util.frontend_helpers import run_vite, write_vite_values
...
@@ -11,6 +11,10 @@ from ...util.frontend_helpers import run_vite, write_vite_values
class
Command
(
BaseYarnCommand
):
class
Command
(
BaseYarnCommand
):
help
=
"
Create Vite bundles for AlekSIS
"
# noqa
help
=
"
Create Vite bundles for AlekSIS
"
# noqa
def
add_arguments
(
self
,
parser
):
parser
.
add_argument
(
"
command
"
,
choices
=
[
"
build
"
,
"
serve
"
],
default
=
"
build
"
)
parser
.
add_argument
(
"
--no-install
"
,
action
=
"
store_true
"
,
default
=
False
)
def
handle
(
self
,
*
args
,
**
options
):
def
handle
(
self
,
*
args
,
**
options
):
super
(
Command
,
self
).
handle
(
*
args
,
**
options
)
super
(
Command
,
self
).
handle
(
*
args
,
**
options
)
...
@@ -18,7 +22,8 @@ class Command(BaseYarnCommand):
...
@@ -18,7 +22,8 @@ class Command(BaseYarnCommand):
write_vite_values
(
os
.
path
.
join
(
settings
.
NODE_MODULES_ROOT
,
"
django-vite-values.json
"
))
write_vite_values
(
os
.
path
.
join
(
settings
.
NODE_MODULES_ROOT
,
"
django-vite-values.json
"
))
# Install Node dependencies
# Install Node dependencies
yarn_adapter
.
install
(
settings
.
YARN_INSTALLED_APPS
)
if
not
options
[
"
no_install
"
]:
yarn_adapter
.
install
(
settings
.
YARN_INSTALLED_APPS
)
# Run Vite build
# Run Vite build
run_vite
([
"
buil
d
"
])
run_vite
([
options
[
"
comman
d
"
]
]
)
This diff is collapsed.
Click to expand it.
aleksis/core/settings.py
+
1
−
0
View file @
17b73af6
...
@@ -744,6 +744,7 @@ if _settings.get("dev.uwsgi.celery", DEBUG):
...
@@ -744,6 +744,7 @@ if _settings.get("dev.uwsgi.celery", DEBUG):
UWSGI
.
setdefault
(
"
attach-daemon
"
,
[])
UWSGI
.
setdefault
(
"
attach-daemon
"
,
[])
UWSGI
[
"
attach-daemon
"
].
append
(
f
"
celery -A aleksis.core worker --concurrency=
{
concurrency
}
"
)
UWSGI
[
"
attach-daemon
"
].
append
(
f
"
celery -A aleksis.core worker --concurrency=
{
concurrency
}
"
)
UWSGI
[
"
attach-daemon
"
].
append
(
"
celery -A aleksis.core beat
"
)
UWSGI
[
"
attach-daemon
"
].
append
(
"
celery -A aleksis.core beat
"
)
UWSGI
[
"
attach-daemon
"
].
append
(
"
aleksis-admin vite --no-install serve
"
)
DEFAULT_FAVICON_PATHS
=
{
DEFAULT_FAVICON_PATHS
=
{
"
pwa_icon
"
:
os
.
path
.
join
(
STATIC_ROOT
,
"
img/aleksis-icon-maskable.png
"
),
"
pwa_icon
"
:
os
.
path
.
join
(
STATIC_ROOT
,
"
img/aleksis-icon-maskable.png
"
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment