Creating Orchard module without commandline - orchardcms

How does one create a new Orchard Module scaffolding without having access to the commandline tool? It's not like every hosting package will give you RDP or other such remote access tools to your site.

You shouldn't create modules in your running application. Create your module local on your dev computer, then publish it to your website.
Upload it in your Orchard website through:
FTP: upload your module through ftp directly in the /modules directory
Zip file: Create a zip file from your module. Alter the extension to '.nupkg' (myModule.nupkg). Go to you application's module section -> upload from computer -> locate the zip file -> install.
Publish to gallery: Publish your module to the Orchard's module gallery, then install it through the gallery on your application (Only do this if you don't mind to share your module's functions. You shouldn't publish company specific stuff)

Related

Prevent file upload by file extension on IIS 10

I would like to prevent web site users to upload some types of files like .zip, .rar, .bat etc...
Looking for general solution that would be applied to IIS server and not to CMS sistems installed on server.
Uploading .zip file should return an error.
you can add and install "File server resource manager" in windows server (from add/remove programs. Bottom link describe all you needed)
and then block all extension group(like executable files or videos file) of specific path(in your case specific path is your upload folder)
follow this link to more details

Upgrade Service Fabric Application

Is there a way to copy only modified files to Service Fabric.
I have a Service Fabric application containing an ASP. Net 5 application as service. Whenever am doing a change to a JavaScript file inside my ASP. Net 5 service, every time I need to copy the entire service fabric application package. Is there a command which allows to copy only the modified file?
The best way to accomplish this is to use diff packaging and app upgrade. See this link for more info: https://azure.microsoft.com/en-us/documentation/articles/service-fabric-application-upgrade-advanced/. Diff packaging allows you to define an application package that only contains the package parts that you wish to upgrade. However, it only applies to a component of an application package, such as a Service or Code package for example. You can't create a diff package at the file level. So if you've only changed a single file in your code package, you must include that file along with every other file that belongs to the code package. You can't just include the single file that changed. But the benefit of diff packaging is that you'd only need to include that single code package. You wouldn't need to provide other Service's code packages, for example, assuming they haven't been changed.
Service Fabric SDK 2.5 brings in a preview feature called "Refresh Application".
Using this feature you can get quicker feedback of your code changes.
To enable that, set the following from project properties
Application Debug mode = Refresh Application.
More details and limitations can be found here:
https://sharepointforum.org/threads/speed-up-service-fabric-development-with-the-new-refresh-application-debug-mode.111162/
In Fabric Explorer you need to find the node where you Web Application is running. I my case that is _Node_0
By SF SDK design, local SF published file is under C:\SfDevCluster\Data_App\ . In my environment, the website file path is C:\SfDevCluster\Data_App_Node_0\Application1Type_App1\Web1Pkg.Code.1.0.0\wwwroot\
So you can also find your HTML, CSS, JS and other static resources under below path: C:\SfDevCluster\Data_App[node_id][application_type_and_instance_name][service_type_and_version]\
You can just modify the files in this folder, then the change will immediately apply to your local test web browser. Please notice if your service is hosted by micro-service running in several nodes, you may need to modify all nodes files because load balancer may access any folder files randomly.

Custom Orchard Module not loading on a site created from Orchard.Web.1.9.1.zip

I've created a custom module for Orchard and packaged it up as a .nupkg; and now I am testing deployment but I have hit a snag.
If I create a new Orchard site using the Web Platform Installer and install my module (by uploading the nupkg file), everything works fine - the module's single feature is enabled and its entry in the Admin menu appears.
If I build Orchard from source and install my module (again by uploading the nupkg file), everything works fine again.
If I create a site manually from Orchard.Web.1.9.1.zip the site works just fine, but when I install my module by uploading the nupkg, the installation goes through without an error; the module appears in the Modules list and its feature can be enabled/disabled without reporting an error; but the module's Admin menu entry does not appear, nor does the widget it provides and the module's assemblies do not get added into dependencies.xml.
NOTE: my module is precompiled (this is the way we want to ship it) so it contains a bin folder with its assembly and some dependencies contained in it but the module folder does not contain a csproj file. Therefore it should be loaded by the PrecompiledExtensionLoader (at least as I understand http://docs.orchardproject.net/Documentation/Orchard-module-loader-and-dynamic-compilation that should be the case).
Things I have already checked:
Comparing the directories for the installation from Web Platform Installer and the installation created manually from Orchard.Web.1.9.1.zip with WinMerge, there do not appear to be any significant differences. Except that all of the modules listed in dependencies.xml in the WPI site are loaded using the PrecompiledExtensionLoader whereas the modules loaded on the manually created site are all loaded using the DynamicExtensionLoader - and as noted, my module is not listed in the dependencies.xml on the manually created site.
There is nothing logged in the Orchard error log and even when I turn up logging to INFO level and try uninstalling and reinstalling the module I see no messages that indicate an error.
Other modules can be loaded from the Gallery on the manually created site; although these are also loaded by the DynamicModuleLoader.
So does anyone have an idea why this module will load in the case of a site created by WPI and a site created by compiling the source and not load on a site created from the Orchard.Web.1.9.1.zip file.
Failing that, can anyone tell me how to get some more detailed logging out of the module loader?
When I experience things such as this, it often has to do with caching. I'd get the site running without your custom module, add your module, and restart the site.

Publishing a web application with an executable to MS Azure

Here is my situation, I have a web app that contains:
An .exe (which is a .net project along with assembly files and so on)
ZIPped xml files
Folders containing js&css files
Now when executing the .exe it parses the xml inside the ZIPs to create html files( the end result is a complete html that imports some of the js libraries and css files).
Considering that I have basic experience in MS Azure, I am looking for a way to have my application run on azure? My guess is that the ZIPped xmls could be stored most probably using blob storage along with the js and css files. What I am not sure of is how to get the executable running there(Possibly deploying the .exe with its corresponding resources,assemblies,dlls etc...) and have it execute from there.
If you really want to use a home grown build process (your exe) then you need to use cloud services (your own VM) where you can run this and expose your website over whatever ports you want. However it sounds like you are new to .Net, I'd suggest reading up on ASP.Net MVC Web Projects. That way you can leverage Visual Studio for building the website and deploy to a Azure Website, which is designed to host websites.

Is it possible to export an Orchard Theme without using the command line?

I have next to no experience with Orchard, or .NET in general for that matter, but I have agreed to do some development on an existing Orchard website.
I have an admin-login with access to the Dashboard and I have an admin-login at the hosting provider (Arvixe). I've started moving the site over to Azure so I can use that as a staging environment.
I've successfully exported all the content, but the site is also running a custom theme that I also need to move over. From what I gather the only way to package that theme is using the command line interface, but I can't find a way to run the command line executable via the hosting provider's web interface (I haven't been able to connect to it with SSH).
Is there any way to run what is usually command line operations via the Dashboard? Some kind of module that I have not discovered? Is there any way of moving a theme from one installation to another without using the command line?
If you have access to the Arvixe account, you also have access to ftp. Do that, then look under the Themes directory. Copy the theme's folder. What's the web site?

Resources