The easiest deployment of HTTP server ever

$ cd /public_content_dir

$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 …
localhost – – [27/Jun/2013 12:48:15] “GET / HTTP/1.1” 200 –
localhost – – [27/Jun/2013 12:48:19] “GET /bin/ HTTP/1.1” 200 –

check the URL http://ip-address:8000  in your browser

🙂

Thanks to my friend Krzysztof Ratecki for this cool trick !!!

 

Advertisements

Running liquibase from command line

Create liquibase.properties file next to the changeLogFile (which by default is named install.xml)

promptOnNonLocalDatabase false
url jdbc:postgresql://hostname/db_name
username my_user
password my_pass
driver org.postgresql.Driver
defaultSchemaName localizer

Execute commands:

$ cd my_project/src/main/resources

$ ~/liquibase-3.0.0-bin/liquibase –driver=org.postgresql.Driver –classpath=/path/to/postgresql-9.0-801.jdbc4.jar –changeLogFile=install.xml –defaultsFile=liquibase.properties –logLevel=debug –logFile=/tmp/localizer-liquibase.log update -DschemaName=my_schema

Liquibase Home is not set.
Liquibase Home: /my/userhomedir/liquibase-3.0.0-bin
Liquibase update Failed: Validation Failed:
8 change sets check sum
….

….

For more information, use the –logLevel flag