How to config Vue JS on ZTI server (Ubuntu).

This is the document how to config Vue JS after deploying webapp on ZTI dev server. 1. Create and config .htaccess file on the webapp root project folder. RewriteEngine OnRewriteBase /RewriteRule ^index.html$ – [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /<webapp_path>/index.html [L] 2. Setup new deployment in Jenkins with this template.http://jenkins.ztidev.com/jenkins/view/KHA.ZealNews/job/Dev._KHA-CMS/configure 3. Config Nginx $ vi […]

Teerakorn Bounoy

April 6, 2023

[MongoDB] How to create new database.

This is the manual how to create new database for developing on ZTI database server. Remote to ZTI database server. Login to mongo$ mongo Authen to with admin account.> use admin;> db.auth(‘<admin_username>’, ‘<admin_password>’);1 Create new database. > use <db_name>;> db.createUser( { user: “<username>”, pwd: “<password>”, roles: [ { role: “readWrite”, db: “<db_name>” } ] });> […]

Teerakorn Bounoy

April 6, 2023

[MariaDB, MySQL] How to create new database.

This is the manual how to create new database for developing on ZTI database server. Remote to ZTI database server. Login to mariadb $ mysql -u root -p Create new database with command > create database <db_name>;> create user ‘<username>‘@’localhost’ identified by ‘<password>‘;> create user ‘<username>‘@’%’ identified by ‘<password>‘;> grant all on <db_name>.* to ‘<username>‘ […]

Teerakorn Bounoy

April 6, 2023

How to setup Jenkins using Docker

Install Jenkins using Dockersudo docker run –restart always -p 8081:8080 –name=jenkins -d \ -v /var/www/html:/var/www/html \ –env JAVA_OPTS=”-Xmx4092m” –env JENKINS_OPTS=”–prefix=/jenkins” jenkins/jenkins Get password from tail logs command.docker logs –tail 100 -f <container_name> Install Jenkins Recommend plugin. Install ZTI’s Recommend plugin.Manage Jenkins > Plugin Manager > Available Tab Gitlab Deploy to container Maven Integration Publish over […]

Teerakorn Bounoy

October 22, 2022

SMTP Gmail ใช้งานไม่ได้ [google policy update 2022]?

ตามหัวข้อเลยครับ จากที่เจอมาคือ ในช่วงปี 2022 ทาง google ได้มีการ เปลี่ยน policy เกี่ยวกับการใช้งาน smtp Less Secure Apps feature on some Google accounts from May 30th, 2022 ซึ่งส่งผลให้ หน่วยงานหรือโครงการที่ใช้ smtp Gmail ไม่สามารถใช้งานได้ หากยังไม่ได้ทำการ อัพเดตตามเงื่อนไขใหม่ (เมลบริษัท ที่เป้นของ Gmail ยังไม่พบปัญหา) วิธีการแก้ปัญหามีดังนี้ แก้ไขประมาณนี้ ก็จะสามารถ ส่งเมลได้เป็นปรกติแล้วครับ

pitthaya.d

August 30, 2022

[Jasper] Setup Jasper Report with docker

First, you have to install docker into your server.Here is the configuration file. Setup Tomcat & MariaDB docker. Setup ZTI Tomcat docker.docker run –name zti_demo –restart always -v /usr/local/tomcat/webapps:/usr/local/tomcat/webapps -v /usr/local/tomcat/webapps/ROOT:/usr/local/tomcat/webapps/ROOT -v /usr/local/tomcat/logs:/usr/local/tomcat/logs -v /data:/data -p 8080:8080 -p 8443:8443 –env JAVA_OPTS=”-Djava.security.egd=file:/dev/./urandom” -d zealtech/tomcat:8.5.37 Setup MariaDB docker.docker run –name=zti_maria_demo –restart always -e MYSQL_ROOT_PASSWORD=’****’ -e MYSQL_DATABASE=zti -v […]

Teerakorn Bounoy

May 13, 2022
1 2 3