Update .gitignore.
Fix server.
Use `dev` as tmp directory.