Hello HCK World – My New Journey (and a WordPress front-end)

I have just setup my droplet on Digital Ocean.  I will be testing some servers written in Java (Kotlin) , PHP, and other languages.  If you are reading this you found it 🙂


180604 – Spring boot deploy to tomcat is proving to be challenging using Gradle.  I am going to try Maven to build the war file.   Frustrating to be stuck on this.


180606 – I am now developing on Ubuntu 18 in a virtualbox.  Soon things will settle I’m sure ;P


180613 – I figured out how to deploy a Spring Boot 2.0 app onto Tomcat 8.5.
 !  Eureka !

 First I got it working on Ubuntu locally in a Virtualbox.  Once I figured out that I needed to extend the class to bind to the servlet configs … bingo.

From section 87 of the manual;
I shit you not !

The example was for Maven, and I am using Gradle
…. but 3rd time conquers !!


180614 Morning – OOOhh OK Ok ok, Now We’re getting somewhere.

WAR file means
Web ARchive file
It is a web application deployment method
🙂 I am not violent 🙂

I have turned off the Tomcat Server. Traditionally that is the way to serve java applications, with Tomcat, or JBoss, or some application server.  The new Java “stuff” allows for an embedded Tomcat server option.  The application entry point needs to have both configurations, one for the war file to be deployed in a traditional application server and another for the embedded (all-in-one) server.   The embedded server option uses less resources (memory) and can operate with a smaller footprint.

This server (see below) is Digital Ocean’s light version.  It only has one Gb of memory.  What do you expect world domination (domain) wou;d cost …. $5 a month plus a domain name.  So small size matters in server costs  😛


180614 Afternoon
~~~  Good Chat with Troy   ~~~

The black screen shows an ssh (secure shell) session into this server named Springer.    Here I kick-off the embedded tomcat jar war file with the command : java -jar complete.war 


The little white box, in the black box, is a chrome browser where I test the site.  The secured Apache server acts as a gateway for the Java apps, whereby it hands off to client request to the tomcat embedded proxy server running on port 8080.  Embedded / standalone java servers ; cool newfangled technology the kids is using today.  See section 87.1 (again no shitting ya)


Here is the Dashboard to see the server stats.  Gotta watch the memory.


Experiment is going very well !

  • This server is up and secured with a HTTPS Apache 2 server front end 🙂
  • Tested embedded Java Spring Boot 2.0 web application / REST
  • This WordPress media outlet as well … patience … persistence 🙂

Now full app test with database and Secured Clients Access for; Web browser, REST clients, and Android mobile … see what flutter can do about IOS …   also looking into the new Android Component Toolset.   This paragraph will be cleaned up with references to the work.

Rest interface will be public first, and then I will introduce the OAuth2 social logins and identity provider services

…. moooo $$$$ but freeish to get going 😉  I have already done this last month, and I have backed up to get the server foundations secured with the “Meh Admin Stuff


This is the Ubuntu OS ( running in a VirtualBox ) I installed the Intellij IDE here as well.  So what you see is me checking the difference before and after the code that solved this problem.

It really wan my fault, as it was a code issue this time, and not a Operations issue.  developers fault, not operations fault.

So here is the fix going in.  I should be working on a branch, but this is just throw-away code.

Pushed to GitHub for safety

See it live for a limited time
https://terms.mehstuff.com/
https://terms.mehstuff.com/greeting

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.