我使用以下命令从我的终端运行我的 Maven 项目开发配置文件
sudo mvn spring-boot:run -Dspring.profiles.active=dev
Run Code Online (Sandbox Code Playgroud)
如何使用给定的配置文件运行我的项目以在调试模式下运行。如何为此在intellij中设置配置?
我无法在我的 django 项目中运行 python 脚本。
mkdir scriptstouch scripts/__init__.pytouch scripts/update_keyword.py
def run():
# Fetch all questions
print("run script")
Run Code Online (Sandbox Code Playgroud)
然后我在以下命令的帮助下运行我的脚本:
python manage.py runscript update_keyword.py
Run Code Online (Sandbox Code Playgroud)
现在我收到以下错误:
Unknown command: 'runscript'
Type 'manage.py help' for usage.
Run Code Online (Sandbox Code Playgroud)
我已经关注这个博客https://django-extensions.readthedocs.io/en/latest/runscript.html。请帮助。