2013年4月18日木曜日

Cloud FoundryにWebアプリをIntelliJでデプロイする

IntelliJのバージョンいくつかから、Cloud FoundryおよびCloudBeesとの連携機能がバンドルされるようになっていたので試してみました。

ここではとりあえず、GrailsアプリをCloud Foundryにデプロイしてみます。

プロジェクトを作成

プロジェクトがなきゃ始まりませんので……

デプロイするwarファイルを作成する

「Ctrl+Alt+G」から「prod war」コマンドを実行して、デプロイするwarを作成します。

実行設定を作成

「Edit Configuration」から……

「Defaults」から「Cloud Foundry Server」を選択して、緑の+ボタンで実行設定を追加

「Server」タブの「Configure」でCloud Foundryアカウントを設定

「Deployment」タブでデプロイするwarを設定

デプロイするアプリの設定を行う。とりあえず、「Type」を「Grails」に。MongoDBとかサービスを追加するときは「Edit services」から適宜追加。

設定したwarをデプロイ

「Application Servers」タブから、緑の矢印でCloud Foundryに接続、デプロイ

で、warがデプロイされて、ブラウザが開いてアプリケーションに繋がるはず。

アプリケーションを更新したら

「prod war」でもう一回warを作り直して、実行画面から更新。更新中404になるのがイケてない。

うわぁ簡単すぎて書くことない…もうちょっと複雑なことしようとしたらいろいろ出てくるかも、ということで

1 件のコメント:

  1. While this isn't strictly related to prizes, it feels a little ridiculous to pick a 온라인 카지노 non-mobile pleasant on line casino web site in 2022. Only choose the site that provides a withdrawal methodology you already use, so that you are acquainted with the whole process from the beginning. If you need in-depth evaluations of the most effective real cash Casinos available in 2022, there are plenty of web sites you'll be able to|you possibly can} seek the advice of}. Different Slots come with totally different Return to Player numbers , and {you need to|you should|you have to} certain you|ensure you|be certain to} know all the RTPs well enough all the time to pick the right slot machine. This recreation will keep you glued to the display whereas wolves and different wild animals roam the display to help you|that will assist you|that can help you} discover one of the jackpots on tap.

    返信削除