Skip to content

Commit

Permalink
[fix] Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
blavenie committed Apr 26, 2019
1 parent f710583 commit e96adac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
"maximumWarning": "4mb",
"maximumError": "6mb"
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ echo "Current version: $current"
# force nodejs version to 8
if [ -d "$NVM_DIR" ]; then
. $NVM_DIR/nvm.sh
nvm use 8
nvm use 10
else
echo "nvm (Node version manager) not found (directory $NVM_DIR not found). Please install, and retry"
exit -1
Expand Down Expand Up @@ -70,7 +70,7 @@ fi
echo "----------------------------------"
echo "- Creating artefact..."
echo "----------------------------------"
cd $DIRNAME/dist
cd $DIRNAME/www
zip -q -r sumaris-app.zip sumaris-app
if [ $? -ne 0 ]; then
exit
Expand Down
1 change: 1 addition & 0 deletions src/app/trip/observedlocation/observed-location.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export class ObservedLocationPage extends AppTabPage<ObservedLocation> implement
// If is on field mode, fill default values
if (isOnFieldMode) {
data.startDateTime = moment();
// TODO : get the default program from local settings ?
data.program = ReferentialRef.fromObject({label: environment.defaultProgram});
}

Expand Down

0 comments on commit e96adac

Please sign in to comment.