Skip to content

Commit

Permalink
🤖 [AUTO] 1.2.19 2023-10-08 23:19:27
Browse files Browse the repository at this point in the history
  • Loading branch information
oceaster committed Oct 8, 2023
1 parent fd48fff commit c4ebd8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions core/library/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class WebClient():

# Client.is_native is an non-overridable variable which indicates weather or not
# this client is a react-native based client or not.
is_native:bool = True
is_native:bool = False

def __init__(self):
# User setup dependent options
Expand All @@ -108,10 +108,11 @@ def __init__(self):
self.IS_INDEX = self.ENDPOINT == ''
# Generate production environment file
with open(self.ENV, 'w') as prd_env:
prd_env.write(self._env(prd=True))
# Generate development environment file
with open(self.ENV + '.dev', 'w') as dev_env:
dev_env.write(self._env(prd=False))
prd_env.write(self._env(prd=True if not self.is_native else not settings.DEBUG))
if not self.is_native:
# Generate development environment file
with open(self.ENV + '.dev', 'w') as dev_env:
dev_env.write(self._env(prd=False))
# Build the url structure
self.URL = self._url()
self.URLS = self.__urls__() if callable(self.__urls__) else None
Expand Down
2 changes: 1 addition & 1 deletion core/tools/commands/django/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _server(start:bool = True, migrate:bool = False, collectstatic:bool = False)
call_command('collectstatic', '--noinput', '-i admin')

if start:
system(f"cd {BASE_DIR} && {sys.executable} core.py runserver localhost:{SECRET_DATA['LOCAL_PORT']}")
system(f"cd {BASE_DIR} && {sys.executable} core.py runserver 0.0.0.0:{SECRET_DATA['LOCAL_PORT']}")


# Server database migration shortcut
Expand Down

0 comments on commit c4ebd8a

Please sign in to comment.