Skip to content

Commit 79fc6af

Browse files
adam-lightningpre-commit-ci[bot]tchatonBorda
authored
[App] Moved app.py to root dir for lightning init app <app_name> template (#13853)
* Moved app.py to main app directory * updated docs * updated changelog * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: thomas chaton <[email protected]> Co-authored-by: Jirka Borovec <[email protected]>
1 parent 6113283 commit 79fc6af

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

docs/source-app/workflows/build_lightning_app/from_scratch_content.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ You'll see a print-out like this:
8787
/Users/Your/Current/dir/your-app-name
8888
8989
run your app with:
90-
lightning run app your-app-name/your_app_name/app.py
90+
lightning run app your-app-name/app.py
9191
9292
run it on the cloud to share with your collaborators:
93-
lightning run app your-app-name/your_app_name/app.py --cloud
93+
lightning run app your-app-name/app.py --cloud
9494
9595
----
9696

src/lightning_app/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
4848
- Resolved a bug where the install command was not installing the latest version of an app/component by default ([#14181](https://github.com/Lightning-AI/lightning/pull/14181))
4949

5050

51+
- Unification of app template: moved `app.py` to root dir for `lightning init app <app_name>` template ([#13853](https://github.com/Lightning-AI/lightning/pull/13853))
52+
53+
5154
## [0.5.5] - 2022-08-9
5255

5356
### Deprecated
File renamed without changes.

src/lightning_app/cli/cmd_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ def app(app_name):
1919
{new_resource_name}
2020
2121
run your app with:
22-
lightning run app {app_name}/{name_for_files}/app.py
22+
lightning run app {app_name}/app.py
2323
2424
run it on the cloud to share with your collaborators:
25-
lightning run app {app_name}/{name_for_files}/app.py --cloud
25+
lightning run app {app_name}/app.py --cloud
2626
"""
2727
logger.info(m)
2828

0 commit comments

Comments
 (0)