isaのiPhone App開発ブログ -3ページ目

isaのiPhone App開発ブログ

個人的にiPhone Applicationの開発しています。

開発中のアプリケーションのバージョン表示で、メールアドレスと、URLを追加した。
今回、LinkLabelのクラスを作成しそのクラスを画面にセット。

ついでに、レビューの内容も連携できるように前もって仕込んでおいた(^_^;)

公開完了後に、即座にバージョンアップの申請を行う予定。

これで、とりあえずは完成。

申請したアプリケーションの承認がおりればいいなぁ。

約2週間位かかるらしいので、その間は別のアプリケーションを開発してみよ。


 ・Wordpressの最新バージョンをダウンロードする。
      
http://ja.wordpress.org/wordpress-3.6-ja.tar.gz

         # wget http://ja.wordpress.org/wordpress-3.6-ja.tar.gz


・念のため、必要なソフトウェアをインストール。

    ・php-mysql

        # yum install php-mysql

   ・php-mbstring

        # yum install php-mbstring


1.Wordpressを解凍する。

    # tar zvzf wordpress-3.6-ja.tar.gz

2./var/www/htmlにファイルをコピーする。

    # cp wordpress /var/www/wp_iphone_dev

    # cd /var/www/wp_iphone_dev

3.設定ファイルを編集する

    # cp wp_config_sample.php wp_config.php

    # vi wp_config.php

変更箇所

    // ** MySQL 設定 - こちらの情報はホスティング先から入手してください。 ** //

    /** WordPress のためのデータベース名 */

   define('DB_NAME', 'wp_iphone_dev');


    /** MySQL データベースのユーザー名 */

    define('DB_USER', 'wordpress');


    /** MySQL データベースのパスワード */

define('DB_PASSWORD', 'xxxxxxxx');


4.MySQLを設定する。

  4.1 MySQLrootでログインする。

    # mysql -u root -p

     Enter password:

     Welcome to the MySQL monitor. Commands end with ; or \g.

     Your MySQL connection id is 244

     Server version: 5.1.69 Source distribution

     Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

     Oracle is a registered trademark of Oracle Corporation and/or its

     affiliates. Other names may be trademarks of their respective owners.

     Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

    mysql>

4.2 データベースを作成する

     mysql> create database wp_iphone_dev;

     Query OK, 1 row affected (0.00 sec)


4.3 ユーザを作成する

     mysql> grant all privileges on wp_iphone_dev.* to wordpress@localhost identified by 'xxxxxxxx';

     Query OK, 0 rows affected (0.00 sec)

4.4 コミットする

     mysql> mysql> FLUSH PRIVILEGES;

     Query OK, 0 rows affected (0.00 sec)

4.5 終了する

    mysql> exit;

     5.wordpressの画面を起動し管理画面を表示する。



帰り際にいいことを思いついた。

一覧から選択した時にマップにピンをたてよう。ニコニコ

違う選択をした場合、ピンをすべて消してから、再度ピンをつける。

チェックインしたら、選択したもの、ピンを削除する。

時間があったら、今度は履歴をもたせるような仕組みを考えよう。

15日体験無料のGMOのVPSサービスを登録。
月額でも980円とのことでとりあえず申し込みし、2時間ほどで構築が完了されたので、その後、いろいろソフトをインストールしてみました。

iPhone開発用で、VPSでサーバをCentOSで作成して、ソース管理(Subversion)、プロジェクト管理(Redmine)、Wordpressをインストールしてみます。

データベースはMySQL標準についてくるのでそれを使用することにする。

構築内容
 ・SSH
 ・Apache
 ・php
 ・MySQL
 ・Redmine
 ・Wordpress

構築内容はまた後日。