Some tips to upgrade your lift 2.5 2.6 application to lift 3 (3.0-SNAPSHOT, 3.0-M2, ...etc)
replace ensureIndex(
by createIndex(
replace setIsUnset(
by setIfUnset(
New Features
version: "3.3" | |
services: | |
traefik: | |
image: "traefik:v2.9" | |
container_name: "traefik" | |
command: | |
- "--log.level=DEBUG" | |
- "--api.insecure=true" |
#!/bin/bash | |
installPackage=false | |
function process | |
{ | |
packageName=$1 | |
echo "######### key : $packageName" | |
v=$(eval "apt-cache policy $packageName | grep 'Candidate:' | cut -c 14-") | |
echo "######### version: $v" |
tabargs=( "$@" ) | |
firstFile="$1" | |
directory=$(dirname "$1") | |
cd "$directory" | |
zipFileName=`basename "$firstFile"` | |
DATE=`date '+%Y%m%d_%H%M%S'` | |
zipFileName=${DATE}_${zipFileName}.zip | |
echo $zipFileName | |
echo $directory |
#!/bin/sh | |
# Setup encrypted disk image | |
# For Ubuntu 14.04 LTS | |
CRYPTFS_ROOT=/cryptfs | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install cryptsetup |
package code.mockweb | |
/* | |
* Copyright 2011 WorldWide Conferencing, LLC | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
<script type="text/javascript"> | |
WebFontConfig = { | |
custom: { families: [ 'FontAwesome' ], | |
urls: [ '//cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css'] } | |
}; | |
(function() { | |
var wf = document.createElement('script'); | |
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + | |
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; | |
wf.type = 'text/javascript'; |
package demo.js | |
import net.liftweb.http.js.JsCmd | |
object JsCommands30 { | |
/** | |
* JsSchedule the execution of the JsCmd using setTimeout() | |
* @param what the code to execute | |
*/ |
package code.lib | |
import net.liftweb.common._ | |
import net.liftweb.http._ | |
import S._ | |
import net.liftweb.util._ | |
import Helpers._ | |
import code.model.User |