Kurisu
By any chance, does someone have a script to rename a whole phoenix project?
I think basically the script will rename all occurences of AppName by NewAppName, app_name by new_app_name inside the content of the project files. Then also rename all files having app_name in their name by new_app_name. There may be other things I’m not aware of…
Thanks
Marked As Solved
axelson
Have you looked at:
https://github.com/MainShayne233/rename
I haven’t used it personally but it looks like it does what you want. Another thing I sometimes do is run the phoenix generators for the new project name and then copy over the resulting files.
Also Liked
Kurisu
Thanks I just tested it and it worked fine for me. ^^
Just a note for others that may be interrested.
For umbrella project I had to add the package in the umbrella dependencies and also in the child app to be renamed dependencies.
Then I run the mix task first at the root of the umbrella project:
mix rename OldAppName NewAppName old_app_otp new_app_top
before running it again at the root of the child app.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









