diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3d6925de..5f0b23b8 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -77,7 +77,7 @@ updates: - "nerves_system*" - package-ecosystem: mix - directory: "/hello_phoenix" + directory: "/poncho_phoenix" schedule: interval: daily open-pull-requests-limit: 10 diff --git a/README.md b/README.md index 55c6d9bb..012dda7d 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ application's root directory. * [`hello_gpio`](https://github.com/nerves-project/nerves-examples/blob/main/hello_gpio/README.md) * [`hello_lfe`](https://github.com/nerves-project/nerves-examples/blob/main/hello_lfe/README.md) * [`hello_live_view`](https://github.com/nerves-project/nerves-examples/blob/main/hello_live_view/README.md) -* [`hello_phoenix`](https://github.com/nerves-project/nerves-examples/blob/main/hello_phoenix/README.md) +* [`poncho_phoenix`](https://github.com/nerves-project/nerves-examples/blob/main/poncho_phoenix/README.md) * [`hello_scenic`](https://github.com/nerves-project/nerves-examples/blob/main/hello_scenic/README.md) * [`hello_snmp_agent`](https://github.com/nerves-project/nerves-examples/blob/main/hello_snmp_agent/README.md) * [`hello_snmp_manager`](https://github.com/nerves-project/nerves-examples/blob/main/hello_snmp_manager/README.md) diff --git a/hello_phoenix/README.md b/poncho_phoenix/README.md similarity index 99% rename from hello_phoenix/README.md rename to poncho_phoenix/README.md index 147a26bb..bdc32763 100644 --- a/hello_phoenix/README.md +++ b/poncho_phoenix/README.md @@ -1,4 +1,4 @@ -# Hello Phoenix +# Poncho Phoenix This example demonstrates a basic poncho project for deploying a [Phoenix Framework]-based application to a Nerves device. A "poncho project" is similar diff --git a/hello_phoenix/firmware/.formatter.exs b/poncho_phoenix/firmware/.formatter.exs similarity index 100% rename from hello_phoenix/firmware/.formatter.exs rename to poncho_phoenix/firmware/.formatter.exs diff --git a/hello_phoenix/firmware/.gitignore b/poncho_phoenix/firmware/.gitignore similarity index 100% rename from hello_phoenix/firmware/.gitignore rename to poncho_phoenix/firmware/.gitignore diff --git a/hello_phoenix/firmware/README.md b/poncho_phoenix/firmware/README.md similarity index 100% rename from hello_phoenix/firmware/README.md rename to poncho_phoenix/firmware/README.md diff --git a/hello_phoenix/firmware/config/config.exs b/poncho_phoenix/firmware/config/config.exs similarity index 100% rename from hello_phoenix/firmware/config/config.exs rename to poncho_phoenix/firmware/config/config.exs diff --git a/hello_phoenix/firmware/config/host.exs b/poncho_phoenix/firmware/config/host.exs similarity index 100% rename from hello_phoenix/firmware/config/host.exs rename to poncho_phoenix/firmware/config/host.exs diff --git a/hello_phoenix/firmware/config/target.exs b/poncho_phoenix/firmware/config/target.exs similarity index 98% rename from hello_phoenix/firmware/config/target.exs rename to poncho_phoenix/firmware/config/target.exs index f7bd3685..38d32450 100644 --- a/hello_phoenix/firmware/config/target.exs +++ b/poncho_phoenix/firmware/config/target.exs @@ -15,7 +15,7 @@ config :ui, UiWeb.Endpoint, code_reloader: false config :ui, Ui.Repo, - database: "/data/hello_phoenix/hello_phoenix_ui.db", + database: "/data/poncho_phoenix/poncho_phoenix_ui.db", pool_size: 5, show_sensitive_data_on_connection_error: true diff --git a/hello_phoenix/firmware/lib/firmware.ex b/poncho_phoenix/firmware/lib/firmware.ex similarity index 100% rename from hello_phoenix/firmware/lib/firmware.ex rename to poncho_phoenix/firmware/lib/firmware.ex diff --git a/hello_phoenix/firmware/lib/firmware/application.ex b/poncho_phoenix/firmware/lib/firmware/application.ex similarity index 100% rename from hello_phoenix/firmware/lib/firmware/application.ex rename to poncho_phoenix/firmware/lib/firmware/application.ex diff --git a/hello_phoenix/firmware/lib/firmware/migration_helpers.ex b/poncho_phoenix/firmware/lib/firmware/migration_helpers.ex similarity index 100% rename from hello_phoenix/firmware/lib/firmware/migration_helpers.ex rename to poncho_phoenix/firmware/lib/firmware/migration_helpers.ex diff --git a/hello_phoenix/firmware/mix.exs b/poncho_phoenix/firmware/mix.exs similarity index 100% rename from hello_phoenix/firmware/mix.exs rename to poncho_phoenix/firmware/mix.exs diff --git a/hello_phoenix/firmware/mix.lock b/poncho_phoenix/firmware/mix.lock similarity index 100% rename from hello_phoenix/firmware/mix.lock rename to poncho_phoenix/firmware/mix.lock diff --git a/hello_phoenix/firmware/rel/vm.args.eex b/poncho_phoenix/firmware/rel/vm.args.eex similarity index 100% rename from hello_phoenix/firmware/rel/vm.args.eex rename to poncho_phoenix/firmware/rel/vm.args.eex diff --git a/hello_phoenix/firmware/rootfs_overlay/etc/iex.exs b/poncho_phoenix/firmware/rootfs_overlay/etc/iex.exs similarity index 100% rename from hello_phoenix/firmware/rootfs_overlay/etc/iex.exs rename to poncho_phoenix/firmware/rootfs_overlay/etc/iex.exs diff --git a/hello_phoenix/firmware/test/firmware_test.exs b/poncho_phoenix/firmware/test/firmware_test.exs similarity index 100% rename from hello_phoenix/firmware/test/firmware_test.exs rename to poncho_phoenix/firmware/test/firmware_test.exs diff --git a/hello_phoenix/firmware/test/test_helper.exs b/poncho_phoenix/firmware/test/test_helper.exs similarity index 100% rename from hello_phoenix/firmware/test/test_helper.exs rename to poncho_phoenix/firmware/test/test_helper.exs diff --git a/hello_phoenix/ui/.formatter.exs b/poncho_phoenix/ui/.formatter.exs similarity index 100% rename from hello_phoenix/ui/.formatter.exs rename to poncho_phoenix/ui/.formatter.exs diff --git a/hello_phoenix/ui/.gitignore b/poncho_phoenix/ui/.gitignore similarity index 100% rename from hello_phoenix/ui/.gitignore rename to poncho_phoenix/ui/.gitignore diff --git a/hello_phoenix/ui/README.md b/poncho_phoenix/ui/README.md similarity index 100% rename from hello_phoenix/ui/README.md rename to poncho_phoenix/ui/README.md diff --git a/hello_phoenix/ui/assets/css/app.css b/poncho_phoenix/ui/assets/css/app.css similarity index 100% rename from hello_phoenix/ui/assets/css/app.css rename to poncho_phoenix/ui/assets/css/app.css diff --git a/hello_phoenix/ui/assets/js/app.js b/poncho_phoenix/ui/assets/js/app.js similarity index 100% rename from hello_phoenix/ui/assets/js/app.js rename to poncho_phoenix/ui/assets/js/app.js diff --git a/hello_phoenix/ui/assets/tailwind.config.js b/poncho_phoenix/ui/assets/tailwind.config.js similarity index 100% rename from hello_phoenix/ui/assets/tailwind.config.js rename to poncho_phoenix/ui/assets/tailwind.config.js diff --git a/hello_phoenix/ui/assets/vendor/topbar.js b/poncho_phoenix/ui/assets/vendor/topbar.js similarity index 100% rename from hello_phoenix/ui/assets/vendor/topbar.js rename to poncho_phoenix/ui/assets/vendor/topbar.js diff --git a/hello_phoenix/ui/config/config.exs b/poncho_phoenix/ui/config/config.exs similarity index 100% rename from hello_phoenix/ui/config/config.exs rename to poncho_phoenix/ui/config/config.exs diff --git a/hello_phoenix/ui/config/dev.exs b/poncho_phoenix/ui/config/dev.exs similarity index 100% rename from hello_phoenix/ui/config/dev.exs rename to poncho_phoenix/ui/config/dev.exs diff --git a/hello_phoenix/ui/config/prod.exs b/poncho_phoenix/ui/config/prod.exs similarity index 100% rename from hello_phoenix/ui/config/prod.exs rename to poncho_phoenix/ui/config/prod.exs diff --git a/hello_phoenix/ui/config/runtime.exs b/poncho_phoenix/ui/config/runtime.exs similarity index 100% rename from hello_phoenix/ui/config/runtime.exs rename to poncho_phoenix/ui/config/runtime.exs diff --git a/hello_phoenix/ui/config/test.exs b/poncho_phoenix/ui/config/test.exs similarity index 100% rename from hello_phoenix/ui/config/test.exs rename to poncho_phoenix/ui/config/test.exs diff --git a/hello_phoenix/ui/lib/ui.ex b/poncho_phoenix/ui/lib/ui.ex similarity index 100% rename from hello_phoenix/ui/lib/ui.ex rename to poncho_phoenix/ui/lib/ui.ex diff --git a/hello_phoenix/ui/lib/ui/accounts.ex b/poncho_phoenix/ui/lib/ui/accounts.ex similarity index 100% rename from hello_phoenix/ui/lib/ui/accounts.ex rename to poncho_phoenix/ui/lib/ui/accounts.ex diff --git a/hello_phoenix/ui/lib/ui/accounts/user.ex b/poncho_phoenix/ui/lib/ui/accounts/user.ex similarity index 100% rename from hello_phoenix/ui/lib/ui/accounts/user.ex rename to poncho_phoenix/ui/lib/ui/accounts/user.ex diff --git a/hello_phoenix/ui/lib/ui/application.ex b/poncho_phoenix/ui/lib/ui/application.ex similarity index 100% rename from hello_phoenix/ui/lib/ui/application.ex rename to poncho_phoenix/ui/lib/ui/application.ex diff --git a/hello_phoenix/ui/lib/ui/repo.ex b/poncho_phoenix/ui/lib/ui/repo.ex similarity index 100% rename from hello_phoenix/ui/lib/ui/repo.ex rename to poncho_phoenix/ui/lib/ui/repo.ex diff --git a/hello_phoenix/ui/lib/ui_web.ex b/poncho_phoenix/ui/lib/ui_web.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web.ex rename to poncho_phoenix/ui/lib/ui_web.ex diff --git a/hello_phoenix/ui/lib/ui_web/components/core_components.ex b/poncho_phoenix/ui/lib/ui_web/components/core_components.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/components/core_components.ex rename to poncho_phoenix/ui/lib/ui_web/components/core_components.ex diff --git a/hello_phoenix/ui/lib/ui_web/components/layouts.ex b/poncho_phoenix/ui/lib/ui_web/components/layouts.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/components/layouts.ex rename to poncho_phoenix/ui/lib/ui_web/components/layouts.ex diff --git a/hello_phoenix/ui/lib/ui_web/components/layouts/app.html.heex b/poncho_phoenix/ui/lib/ui_web/components/layouts/app.html.heex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/components/layouts/app.html.heex rename to poncho_phoenix/ui/lib/ui_web/components/layouts/app.html.heex diff --git a/hello_phoenix/ui/lib/ui_web/components/layouts/root.html.heex b/poncho_phoenix/ui/lib/ui_web/components/layouts/root.html.heex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/components/layouts/root.html.heex rename to poncho_phoenix/ui/lib/ui_web/components/layouts/root.html.heex diff --git a/hello_phoenix/ui/lib/ui_web/controllers/error_html.ex b/poncho_phoenix/ui/lib/ui_web/controllers/error_html.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/controllers/error_html.ex rename to poncho_phoenix/ui/lib/ui_web/controllers/error_html.ex diff --git a/hello_phoenix/ui/lib/ui_web/controllers/error_json.ex b/poncho_phoenix/ui/lib/ui_web/controllers/error_json.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/controllers/error_json.ex rename to poncho_phoenix/ui/lib/ui_web/controllers/error_json.ex diff --git a/hello_phoenix/ui/lib/ui_web/controllers/page_controller.ex b/poncho_phoenix/ui/lib/ui_web/controllers/page_controller.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/controllers/page_controller.ex rename to poncho_phoenix/ui/lib/ui_web/controllers/page_controller.ex diff --git a/hello_phoenix/ui/lib/ui_web/controllers/page_html.ex b/poncho_phoenix/ui/lib/ui_web/controllers/page_html.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/controllers/page_html.ex rename to poncho_phoenix/ui/lib/ui_web/controllers/page_html.ex diff --git a/hello_phoenix/ui/lib/ui_web/controllers/page_html/home.html.heex b/poncho_phoenix/ui/lib/ui_web/controllers/page_html/home.html.heex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/controllers/page_html/home.html.heex rename to poncho_phoenix/ui/lib/ui_web/controllers/page_html/home.html.heex diff --git a/hello_phoenix/ui/lib/ui_web/endpoint.ex b/poncho_phoenix/ui/lib/ui_web/endpoint.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/endpoint.ex rename to poncho_phoenix/ui/lib/ui_web/endpoint.ex diff --git a/hello_phoenix/ui/lib/ui_web/gettext.ex b/poncho_phoenix/ui/lib/ui_web/gettext.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/gettext.ex rename to poncho_phoenix/ui/lib/ui_web/gettext.ex diff --git a/hello_phoenix/ui/lib/ui_web/live/page_live.ex b/poncho_phoenix/ui/lib/ui_web/live/page_live.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/live/page_live.ex rename to poncho_phoenix/ui/lib/ui_web/live/page_live.ex diff --git a/hello_phoenix/ui/lib/ui_web/live/page_live.html.heex b/poncho_phoenix/ui/lib/ui_web/live/page_live.html.heex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/live/page_live.html.heex rename to poncho_phoenix/ui/lib/ui_web/live/page_live.html.heex diff --git a/hello_phoenix/ui/lib/ui_web/live/user_live/form_component.ex b/poncho_phoenix/ui/lib/ui_web/live/user_live/form_component.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/live/user_live/form_component.ex rename to poncho_phoenix/ui/lib/ui_web/live/user_live/form_component.ex diff --git a/hello_phoenix/ui/lib/ui_web/live/user_live/index.ex b/poncho_phoenix/ui/lib/ui_web/live/user_live/index.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/live/user_live/index.ex rename to poncho_phoenix/ui/lib/ui_web/live/user_live/index.ex diff --git a/hello_phoenix/ui/lib/ui_web/live/user_live/index.html.heex b/poncho_phoenix/ui/lib/ui_web/live/user_live/index.html.heex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/live/user_live/index.html.heex rename to poncho_phoenix/ui/lib/ui_web/live/user_live/index.html.heex diff --git a/hello_phoenix/ui/lib/ui_web/live/user_live/show.ex b/poncho_phoenix/ui/lib/ui_web/live/user_live/show.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/live/user_live/show.ex rename to poncho_phoenix/ui/lib/ui_web/live/user_live/show.ex diff --git a/hello_phoenix/ui/lib/ui_web/live/user_live/show.html.heex b/poncho_phoenix/ui/lib/ui_web/live/user_live/show.html.heex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/live/user_live/show.html.heex rename to poncho_phoenix/ui/lib/ui_web/live/user_live/show.html.heex diff --git a/hello_phoenix/ui/lib/ui_web/router.ex b/poncho_phoenix/ui/lib/ui_web/router.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/router.ex rename to poncho_phoenix/ui/lib/ui_web/router.ex diff --git a/hello_phoenix/ui/lib/ui_web/telemetry.ex b/poncho_phoenix/ui/lib/ui_web/telemetry.ex similarity index 100% rename from hello_phoenix/ui/lib/ui_web/telemetry.ex rename to poncho_phoenix/ui/lib/ui_web/telemetry.ex diff --git a/hello_phoenix/ui/mix.exs b/poncho_phoenix/ui/mix.exs similarity index 100% rename from hello_phoenix/ui/mix.exs rename to poncho_phoenix/ui/mix.exs diff --git a/hello_phoenix/ui/mix.lock b/poncho_phoenix/ui/mix.lock similarity index 100% rename from hello_phoenix/ui/mix.lock rename to poncho_phoenix/ui/mix.lock diff --git a/hello_phoenix/ui/priv/gettext/en/LC_MESSAGES/errors.po b/poncho_phoenix/ui/priv/gettext/en/LC_MESSAGES/errors.po similarity index 100% rename from hello_phoenix/ui/priv/gettext/en/LC_MESSAGES/errors.po rename to poncho_phoenix/ui/priv/gettext/en/LC_MESSAGES/errors.po diff --git a/hello_phoenix/ui/priv/gettext/errors.pot b/poncho_phoenix/ui/priv/gettext/errors.pot similarity index 100% rename from hello_phoenix/ui/priv/gettext/errors.pot rename to poncho_phoenix/ui/priv/gettext/errors.pot diff --git a/hello_phoenix/ui/priv/repo/migrations/.formatter.exs b/poncho_phoenix/ui/priv/repo/migrations/.formatter.exs similarity index 100% rename from hello_phoenix/ui/priv/repo/migrations/.formatter.exs rename to poncho_phoenix/ui/priv/repo/migrations/.formatter.exs diff --git a/hello_phoenix/ui/priv/repo/migrations/20211206175437_create_users.exs b/poncho_phoenix/ui/priv/repo/migrations/20211206175437_create_users.exs similarity index 100% rename from hello_phoenix/ui/priv/repo/migrations/20211206175437_create_users.exs rename to poncho_phoenix/ui/priv/repo/migrations/20211206175437_create_users.exs diff --git a/hello_phoenix/ui/priv/repo/seeds.exs b/poncho_phoenix/ui/priv/repo/seeds.exs similarity index 100% rename from hello_phoenix/ui/priv/repo/seeds.exs rename to poncho_phoenix/ui/priv/repo/seeds.exs diff --git a/hello_phoenix/ui/priv/static/favicon.ico b/poncho_phoenix/ui/priv/static/favicon.ico similarity index 100% rename from hello_phoenix/ui/priv/static/favicon.ico rename to poncho_phoenix/ui/priv/static/favicon.ico diff --git a/hello_phoenix/ui/priv/static/images/logo.svg b/poncho_phoenix/ui/priv/static/images/logo.svg similarity index 100% rename from hello_phoenix/ui/priv/static/images/logo.svg rename to poncho_phoenix/ui/priv/static/images/logo.svg diff --git a/hello_phoenix/ui/priv/static/robots.txt b/poncho_phoenix/ui/priv/static/robots.txt similarity index 100% rename from hello_phoenix/ui/priv/static/robots.txt rename to poncho_phoenix/ui/priv/static/robots.txt diff --git a/hello_phoenix/ui/test/support/conn_case.ex b/poncho_phoenix/ui/test/support/conn_case.ex similarity index 100% rename from hello_phoenix/ui/test/support/conn_case.ex rename to poncho_phoenix/ui/test/support/conn_case.ex diff --git a/hello_phoenix/ui/test/support/data_case.ex b/poncho_phoenix/ui/test/support/data_case.ex similarity index 100% rename from hello_phoenix/ui/test/support/data_case.ex rename to poncho_phoenix/ui/test/support/data_case.ex diff --git a/hello_phoenix/ui/test/test_helper.exs b/poncho_phoenix/ui/test/test_helper.exs similarity index 100% rename from hello_phoenix/ui/test/test_helper.exs rename to poncho_phoenix/ui/test/test_helper.exs diff --git a/hello_phoenix/ui/test/ui_web/controllers/error_html_test.exs b/poncho_phoenix/ui/test/ui_web/controllers/error_html_test.exs similarity index 100% rename from hello_phoenix/ui/test/ui_web/controllers/error_html_test.exs rename to poncho_phoenix/ui/test/ui_web/controllers/error_html_test.exs diff --git a/hello_phoenix/ui/test/ui_web/controllers/error_json_test.exs b/poncho_phoenix/ui/test/ui_web/controllers/error_json_test.exs similarity index 100% rename from hello_phoenix/ui/test/ui_web/controllers/error_json_test.exs rename to poncho_phoenix/ui/test/ui_web/controllers/error_json_test.exs diff --git a/hello_phoenix/ui/test/ui_web/controllers/page_controller_test.exs b/poncho_phoenix/ui/test/ui_web/controllers/page_controller_test.exs similarity index 100% rename from hello_phoenix/ui/test/ui_web/controllers/page_controller_test.exs rename to poncho_phoenix/ui/test/ui_web/controllers/page_controller_test.exs diff --git a/scripts/projects.sh b/scripts/projects.sh index 5150df97..8d4cea09 100755 --- a/scripts/projects.sh +++ b/scripts/projects.sh @@ -4,7 +4,7 @@ TARGETS="rpi0 rpi rpi2 rpi3 rpi3a rpi4 bbb x86_64 osd32mp1 mangopi_mq_pro" ELIXIR_PROJECTS="blinky \ hello_gpio \ minimal \ - hello_phoenix/firmware \ + poncho_phoenix/firmware \ hello_live_view \ hello_wifi \ hello_sqlite \ diff --git a/scripts/update-deps-all.sh b/scripts/update-deps-all.sh index 1035d695..a4caac47 100755 --- a/scripts/update-deps-all.sh +++ b/scripts/update-deps-all.sh @@ -20,7 +20,7 @@ find . -name mix.lock -delete for project in $PROJECTS; do update_deps $project done -update_deps hello_phoenix/ui +update_deps poncho_phoenix/ui echo "Success"