Migrating from Spray to Akka

Spray is a well-known HTTP library in the Scala ecosystem. It was released in 2011, and since then it’s been widely used by the Scala community. It was recently announced that Spray would be replaced with Akka HTTP, thus cementing Akka HTTP as the successor of Spray. It’s maintained by Lightbend and it’s been recommended that users migrate to it soon.

However, migration from one major version of a library to another is not an easy task. Very often it requires you to spend some time reading the source code in order to figure out how to use certain features, as well as how to migrate existing logic.

This post will demonstrate what changes should be applied in order to migrate your app from Spray to Akka HTTP. The following steps don’t have a particular order, as it depends on which areas need to be rewritten.

Read more

Ubuntu configure LAMP environment

Use-Cases of this Tutorial

  • Installing latest versions of Apache, MySql, PHP & phpMyAdmin on Ubuntu 16.04
  • Installing latest versions of Apache, MySql, PHP & phpMyAdmin on Ubuntu 16.04 (over an AWS EC2 Instance)
Read more

Linux下持续集成环境Teamcity搭建

In any software development project a Continuous Integration/ Continuous Deployment DevOps environment is essential. A recent project I elected to make use of TeamCity & Octopus Deploy all on an Azure stack.

In this post I twill detail the steps on how to install and configure Team City 2017.x on a Ubuntu 16.X server.

Read more

Ubuntu下安装postgreSQL

安装并配置,并设置远程登录用户名和密码

  1. 安装postgreSQL
1
2
sudo apt-get update
sudo apt-get install postgresql
  • 安装完postgreSQL后,会自动注册为服务
  • 安装完postgreSQL后,自动添加一个postgres用户,密码随机。以及自动添加一个postgres数据库,用户名为postgres,密码也随机。
Read more

Ubuntu 16.x 安装Gitlab

GitLab 是一个用于仓库管理系统的开源项目。使用Git作为代码管理工具,并在此基础上搭建起来的web服务。 在GitLab的官方网站上面对Ubuntu的支持也是很好的,有比较详尽的安装指南。 在介绍postfix的地方有少部分的坑,本文抛砖引玉,解决一些我遇到的坑。 本文主要针对Ubuntu 16.04,介绍如何安装Gitlab。其他的Ubuntu可以作为一个参考。

Read more