Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 884 Bytes

deploy.md

File metadata and controls

42 lines (31 loc) · 884 Bytes

Deploy

1 Setting up a production environment

vim src/main/resources/jkapp.yaml

# environment: prod/dev/test
environment=dev

2 Setting up the production database

vim src/main/resources/dataSources.yaml

Write your database configure

3 Setting up the production upload directory and domain

vim src/main/resources/upload.properties

# upload directory, where the uploaded file save, without postfix "/"
uploadRootDirectory=/var/www/upload
encoding=gbk
# domain to visit uploaded file
uploadDomain=http://localhost:8081/jkmvc/upload

4 Setting up the controller classes's package

vim src/main/resources/http.yaml

debug: true
# static file extension
staticFileExts: gif|jpg|jpeg|png|bmp|ico|svg|swf|js|css|eot|ttf|woff
# controller classes's package paths
controllerPackages:
    - net.jkcode.jkmvc.example.controller
# view directory
viewDir: