yubatake is simple blogging engine for Swift.
- 4.2.1
- macOS High Sierra 10.13.4
- Ubuntu 14.04
Please install Swift in your environment. For macOS please download Xcode 10.1. If you are using Ubuntu, it is easy to install using swiftenv.
Example(swiftenv)
$ swiftenv install 4.2.1
yubatake supports MySQL only.
Please install MySQL Server in your environment.
yubatake uses Redis Server as a session store.
Please install Redis in your environment.
For macOS
$ brew install redis
For ubuntu
$ sudo apt-get install redis-server
To use MySQL for the database, please enter the following SQL to create the database.
Please choose the name of a database freely.
mysql> create database yubatake default character set utf8;
Please edit configuration files in Config
directory according to your environment.
The setting of the whole application.
The setting of a mysql server.
The setting of a redis server.
The setting of a Content Security Policy.
$ swift build -c release
※ Depending on the version of MySQL, you may need -Xswiftc -DNOJSON
as argument.
$ swift run -c release Run -e prod
Be sure to set -e prod
as a option to use production middlewares.
If you are using a version earlier than 3.0, you need to migrate the database.
- Please update to 2.1.2
- Run the application to update scheme.
- Please update to 3.0.0
- Execute the following command to migrate the database.
$ swift run Run update -i <oldDatabase>
yubatake is released under the MIT License. See the license file for more info.