Git Product home page Git Product logo

luckysheetserver's Introduction

Luckysheet Server

Spring server to run as luckysheet server

Requirement

  • Redis
  • PostgresQL
    • Base schema is defined in trena main api server as a form of prisma
    • It is recommended to use this server after applying the schema defined by prisma

Active Profile

  • Use postgres profile

Deployment

  1. Build Luckysheet
mvn clean compile
mvn package
  1. Build docker image
docker build -t luckysheet-server:${TAG} .
  1. Tag and push to artifactory
docker tag luckysheet-server:${TAG} \
  art.sec.samsung.net/rs8-sr-nmt_docker/luckysheet-server:${TAG}
docker push art.sec.samsung.net/rs8-sr-nmt_docker/luckysheet-server:${TAG}

Environment

  • REDIS_HOST
    • Host of REDIS Server
    • Default: 127.0.0.1
  • REDIS_PORT
    • Port number of REDIS Server
    • Default: 6379
  • POSTGRESQL_HOST
    • Host of PostgresQL Server
    • Default: 127.0.0.1
  • POSTGRESQL_PORT
    • Port number of PostgresQL Server
    • Default: 5432
  • POSTGRESQL_DB
    • DB Name of PostgresQL Server to use
  • POSTGRESQL_USERNAME
    • Username of PostgresQL Server
  • POSTGRESQL_PASSWORD
    • Password of PostgresQL Server

luckysheetserver's People

Contributors

heiwais25 avatar iamxuchen800117 avatar lmzh0414 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

luckysheetserver's Issues

url not set

请教一下,这个问题怎么解决,luckysheet官方无人回复,
有找到相似问题,但是具体还是不知道怎么解决
dream-num/LuckysheetServer#9
图片

java.sql.SQLException: url not set
	at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:888)
	at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1369)
	at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1365)
	at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:109)
	at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116)
	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:612)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:669)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:700)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:712)
	at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:783)
	at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:804)
	at com.xc.luckysheet.postgres.impl.RecordSelectHandle.getFirstBlockIndexByGridKey(RecordSelectHandle.java:53)
	at com.xc.luckysheet.postgres.impl.RecordSelectHandle$$FastClassBySpringCGLIB$$9f89658f.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:750)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
	at com.xc.luckysheet.postgres.impl.RecordSelectHandle$$EnhancerBySpringCGLIB$$424e7150.getFirstBlockIndexByGridKey(<generated>)
	at com.xc.luckysheet.db.server.JfGridFileGetService.getDefaultByGridKey(JfGridFileGetService.java:64)
	at com.xc.luckysheet.controller.JfGridFileController.load(JfGridFileController.java:68)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.