Skip to content

Commit 88fc70b

Browse files
committed
Move contrib and fixtures to llmstack/
1 parent 4c95b02 commit 88fc70b

File tree

15 files changed

+9
-11
lines changed

15 files changed

+9
-11
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ COPY --from=builder /code/client/build/static /code/client/build/static
3535
COPY --from=builder /code/common /code/common
3636
COPY --from=builder /code/datasources /code/datasources
3737
COPY --from=builder /code/emails /code/emails
38-
COPY --from=builder /code/contrib/apps /code/contrib/apps
39-
COPY --from=builder /code/fixtures /code/fixtures
38+
COPY --from=builder /code/llmstack/contrib/apps /code/llmstack/contrib/apps
39+
COPY --from=builder /code/llmstack/fixtures /code/llmstack/fixtures
4040
COPY --from=builder /code/jobs /code/jobs
4141
COPY --from=builder /code/llmstack /code/llmstack
4242
COPY --from=builder /code/organizations /code/organizations

base/management/commands/loadfixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def handle(self, *args, **options):
1212
self.stdout.write(self.style.SUCCESS('Admin user created.'))
1313

1414
try:
15-
call_command('loaddata', 'fixtures/initial_data.json')
15+
call_command('loaddata', 'llmstack/fixtures/initial_data.json')
1616
self.stdout.write(self.style.SUCCESS('Initial data loaded.'))
1717
except Exception as e:
1818
self.stdout.write(self.style.ERROR(
File renamed without changes.

llmstack/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def prepare_env():
1919

2020
# Copy .env.local file from installed package to ~/.llmstack/.env.local
2121
import shutil
22-
shutil.copyfile(os.path.join(os.path.dirname(os.path.dirname(__file__)), '.env.local'), os.path.join(
22+
shutil.copyfile(os.path.join(os.path.dirname(__file__), '.env.local'), os.path.join(
2323
os.path.expanduser('~'), '.llmstack', '.env.local'))
2424

2525
# Chdir to .llmstack
@@ -54,7 +54,7 @@ def main():
5454

5555
run_django_command(['manage.py', 'migrate', '--noinput'])
5656
run_django_command(['manage.py', 'loaddata', os.path.join(
57-
os.path.dirname(os.path.dirname(__file__)), 'fixtures/initial_data.json')])
57+
os.path.dirname(__file__), 'fixtures/initial_data.json')])
5858
run_django_command(['manage.py', 'createcachetable'])
5959
run_django_command(['manage.py', 'clearcache'])
6060

0 commit comments

Comments
 (0)