行灯職人への道 (satsukita-andon.com) is a website to record and support andon-gyoretsu (行灯行列), which is one of the most exciting events of Sapporo-Kita High School (札幌北高校).
- play-2.1.5
- java-1.7
- if you want to change java's version, use
update-java-alternatives
- if you want to change java's version, use
- ImageMagick (
mogrify
command) - Twitter app
cp twitter4j.properties.example twitter4j.properties
and edit it- consumer key
- consumer secret
- access token
- access token secret
- h2.jar (http://www.h2database.com/html/download.html)
- checked with h2-1.3.*.jar
- put this binary to /db directory with the name
h2.jar
- Elasticsearch-1.5
- with kuromoji plugin
- see tools/es-load
- Notifier Setting Up
cp conf/notifier.conf.example conf/notifier.conf
and edit it
andon
is a convenient command for (start|stop|restart|backup|restore) this application.
Usage: andon (start|stop|restart|backup|restore)
start
- starts the application
- to detach, type Ctrl-D
stop
- stops the application
restart
- restarts the application with a little down time (about 10 seconds)
backup
- takes backup of the contents of
files
directory and the DB contents - automatically restarts the application with a little down time (about 30 seconds)
h2.jar
is needed- backup files will be in
backup
directory- e.g.,
2014-08-03.tar.gz
(files
directory) and2014-08-03.sql
(DB records) - you should move (or send) these files into backup storage
- e.g.,
- takes backup of the contents of
restore
- restores backup files
- down time is about 1 minute.
- current contents will be deleted! be careful!
- to restore to 2014-08-05, run
./andon restore 2014-08-05
backup/2014-08-05.tar.gz
,backup/2014-08-05.sql
anddb/h2.jar
are needed
If you want to change port-number, edit andon
file and change port
variable to another number.
Use play run
instead of ./andon start
.
If you want to insert initial data, add the following code.
(app/Global.scala)
...
object Global extends GlobalSettings {
override def onStart(app: Application) {
...
InitialData.insert
...
}
...
}
...
object InitialData {
...
def insert = DB.db.withSession { implicit session: Session =>
Accounts.create("開発者", "developer", "password", OrdInt(60), Admin)
}
}
% git clone git@github.com:amutake/satsukita-andon.com.git
% cd satsukita-andon.com
% git submodule init
% git submodule update
% ./andon start
The font used in the logo is 祥南行書体.
- Fork it (https://github.com/amutake/satsukita-andon.com/fork)
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request