This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- build | |
- deploy | |
maven-build: | |
image: maven:3-jdk-8 | |
stage: build | |
script: "mvn package -B" | |
artifacts: | |
paths: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server_name app.ployref.com www.app.ployref.com; | |
# serve static files | |
location ^~ /assets/ { | |
root /opt/tomcat/webapps/ROOT/WEB-INF/classes/public; | |
expires 30d; | |
access_log off; | |
} | |
location / { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SQL SERVER-SIDE PAGINATION | |
========================== | |
```php | |
$realOffset = 0; | |
if(!is_null($limit) && $offset > 0) { | |
$realOffset = $offset * $limit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings> | |
<servers> | |
<server> | |
<id>ossrh</id> | |
<username>jira-username</username> | |
<password>jira-password</password> | |
</server> | |
</servers> | |
<profiles> | |
<profile> |