Skip to content

Commit

Permalink
Merge pull request #93 from yanyanho/main
Browse files Browse the repository at this point in the history
fix the start script
  • Loading branch information
yanyanho authored Dec 14, 2023
2 parents 2e42514 + 2645d74 commit 14e0d76
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/main/java/com/dl/officialsite/hiring/Hiring.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ public class Hiring {

private String company;

private String invoice;


private String yearlySalary;

private String benefits;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/dl/officialsite/hiring/HiringSkill.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class HiringSkill {

private String skill;

//扩展字段
private int type;

}
9 changes: 6 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,26 @@ else
fi

if [[ -n "$SECRET_KEY" ]];then
sed "s/{{SECRET_KEY}}/$SECRET_KEY/g" conf/application-template.yml > conf/application.yml
sed "s/{{SECRET_KEY}}/$SECRET_KEY/g" conf/application-template.yml
else
echo "by hand"
fi

if [[ -n "$BUCKET_NAME" ]];then
sed "s/{{BUCKET_NAME}}/$BUCKET_NAME/g" conf/application-template.yml > conf/application.yml
sed "s/{{BUCKET_NAME}}/$BUCKET_NAME/g" conf/application-template.yml
else
echo "by hand"
fi

if [[ -n "$REGION_NAME" ]];then
sed "s/{{REGION_NAME}}/$REGION_NAME/g" conf/application-template.yml > conf/application.yml
sed "s/{{REGION_NAME}}/$REGION_NAME/g" conf/application-template.yml
else
echo "by hand"
fi


cp ../application.yml conf/application.yml

SERVER_PORT=$(cat $CONF_DIR/application.yml | grep "server:" -A 3 | grep "port" | awk '{print $2}'| sed 's/\r//')
if [ ${SERVER_PORT}"" = "" ];then
echo "$CONF_DIR/application.yml server port has not been configured"
Expand Down

0 comments on commit 14e0d76

Please sign in to comment.