Web APIで似たようなのに、「HeartRails Captureスクリーンキャプチャ」がありますが、これは横幅が最大400pxなので、プラグインの方を使ってみたいと思います。
Wordpressの管理画面のプラグインで「新規追加」から「Browser Shots」と入力をしてインストールします。
cd /usr/local/src/
wget http://ja.wordpress.org/wordpress-3.9.1-ja.zip
unzip wordpress-3.9.1-ja.zip
mv wordpress /var/www/html/
mysql> CREATE DATABASE `wordpress` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql> GRANT ALL ON wordpress.* to wordpress@localhost;
mysql> FLUSH PRIVILEGES;
mysql> SET PASSWORD FOR wordpress@localhost=password('パスワード');
vim /var/www/html/wordpress/wp-config.php
vim /var/www/html/wordpress/wp-config.php
define('FS_METHOD', 'direct');あとはパーミッションの変更
cd /var/www/html/wordpress/
mkdir wp-content/upgrade
chmod 0707 wp-content/upgrade
chmod 0707 wp-content/themes
chmod 0707 wp-content/plugins
Add activator your PATH to have the command available in your cli.
cd activator-1.2.1-minimal/
./activator new
Browse the list of templates: http://typesafe.com/activator/templates
Choose from these featured templates or enter a template name:
1) minimal-java
2) minimal-scala
3) play-java
4) play-scala
(hit tab to see a list of all templates)
Enter a name for your application (just press enter for 'play-java')
OK, application "test-project" is being created using the "play-java" template.
To run "test-project" from the command-line, run:
***/activator-1.2.1-minimal/test-project/activator run
To run the test for "test-project" from the command-line, run:
***/activator-1.2.1-minimal/test-project/activator test
To run the Activator UI for "test-project" from the command-line, run:
***/activator-1.2.1-minimal/test-project/activator ui
cd test-project/今度はプロジェクトに依存するjarファイルがよしなにダウンロードされるので、しばし待ちます。
activator run
redirect(controllers.site.routes.SiteFormController.success());のように書きます。
controllers.site.routes.SiteFormController.confirm()のようにして指定します。
@Column(nullable = false, unique = true, columnDefinition = "varchar(191)")でデータベースの定義をします。他のアノテーションはバリデートルールです。
@MaxLength(value=191, message="URLは191文字以下でご入力ください。")