Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleCreator - Creating module in production Enviroment #1211

Closed
leigh-pointer opened this issue Mar 31, 2021 · 7 comments
Closed

ModuleCreator - Creating module in production Enviroment #1211

leigh-pointer opened this issue Mar 31, 2021 · 7 comments

Comments

@leigh-pointer
Copy link
Contributor

Module was not created and log shows this error.

System.NullReferenceException: Object reference not set to an instance of an object.
   at Oqtane.Modules.Admin.ModuleCreator.Index.CreateModule() in C:\Users\Shaun.Walker\source\repos\sbwalker\oqtane.framework\Oqtane.Client\Modules\Admin\ModuleCreator\Index.razor:line 123
@sbwalker
Copy link
Member

sbwalker commented Apr 1, 2021

Which version of Oqtane are you running in production? Did you use the Internal or External module template?

@leigh-pointer
Copy link
Contributor Author

@sbwalker it oqtane 2.0.1 (Oqtane.Client, Version=2.0.1.0,) and was both External and Internal templates

@sbwalker
Copy link
Member

sbwalker commented Apr 1, 2021

The Module Creator was not intended to be used in production. The External template scaffolds the assets in a folder which is outside of the Oqtane root folder - and production hosting environments will explicitly forbid this. The Internal template scaffolds the assets within the Oqtane root folder however they would need to be compiled into the Oqtane assemblies in order to make them active - which is also not possible in a production hosting environment.

Why are you trying to use the Module Creator in production?

@leigh-pointer
Copy link
Contributor Author

Why are you trying to use the Module Creator in production?

Basically exploring the functionality in production.

@sbwalker
Copy link
Member

sbwalker commented Apr 1, 2021

Ok, the only thing I can suggest is that we add a message to the top of the Module Creator module which says "The Module Creator Is Not Intended To Be Used In Production Environments"

@leigh-pointer
Copy link
Contributor Author

Would it not be better to hide the functionality altogether.

@sbwalker
Copy link
Member

sbwalker commented Apr 1, 2021

There is no identifier to know if you are running in production or development. Developers use host file entries to point domain names to their development environment.

sbwalker added a commit that referenced this issue Apr 2, 2021
fix #1211 - add message to indicate Module Creator is only intended for use in development environments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants