Where and how to deploy a Java Spring Boot application for free? [closed]

I too have used GCP to host a Spring-Boot service. I followed this article almost religiously provided by Spring Boot(https://www.baeldung.com/spring-boot-google-app-engine) as well as this github read me that includes extra information about preparing your service to be hosted onto GCP (https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/appengine-standard-java8/springboot-appengine-standard) The main idea is that you will need to create a CLOUD SQL instance … Read more

How do I create a superuser account in Django 1.9.6

I think you want to run these commands: python manage.py makemigrations creates migration files based on your models python manage.py migrate will create the tables in your db based on the migration files created (see docs for more details on database migrations) python manage.py createsuperuser will create a superuser for your application in the database … Read more

Enable authentication for IIS app in Powershell

I had the issue of dealing with locked sections and the accepted answer proposes opening up a GUI to solve it, which I am trying to avoid with PowerShell in first place. Short Answer Enable Windows Authentication and Disable Anonymous Authentication $iisSiteName = “Default Web Site” $iisAppName = “MyApp” Write-Host Disable anonymous authentication Set-WebConfigurationProperty -Filter … Read more

When and why would I need a jboss-deployment-structure.xml for a Spring application?

As long as you don’t have any classloading problems with your application you don’t need the jboss-deployment-structure.xml file. But once you have trouble of such kind the dependency management in jboss-deployment-structure.xml would be your friend. The article Modularized Java with JBoss Modules explains what modules are very well. I think in short you can say … Read more

Make Web.config transformations work locally

if you want to transform a config file without using the Web Publishing Pipeline then you just use the TransformXml task manually. I’ve written a detailed blog post on this at http://sedodream.com/2010/04/26/ConfigTransformationsOutsideOfWebAppBuilds.aspx, but here are the high lights: <Project ToolsVersion=”4.0″ DefaultTargets=”Demo” xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″> <UsingTask TaskName=”TransformXml” AssemblyFile=”$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.Tasks.dll”/> <Target Name=”Demo”> <TransformXml Source=”app.config” Transform=”Transform.xml” Destination=”app.prod.config”/> </Target> </Project> Here I … Read more

How can I programmatically stop or start a website in IIS (6.0 and 7.0) using MsBuild?

By adding a reference to Microsoft.Web.Administration (which can be found inX:\Windows\System32\inetsrv, or your systems equivalent) you can achieve nice managed control of the situation with IIS7, as sampled below: namespace StackOverflow { using System; using System.Linq; using Microsoft.Web.Administration; class Program { static void Main(string[] args) { var server = new ServerManager(); var site = server.Sites.FirstOrDefault(s … Read more