LoginSignup
1
0

More than 3 years have passed since last update.

ローカルからSAP CloudPlatform CF環境へデプロイする

Last updated at Posted at 2020-08-03

(2020/08/28 追記)
Cloud MTA Build Toolのダウンロード方法について修正しました。

はじめに

今回ローカル環境でFiori開発をしましたので、
その際に行っていたCloud Foundry環境へのデプロイ方法を備忘録として記載します。

今回はMacで行いましたが、基本的にはWindowsも同様です。

必要なツール

Cloud MTA Build Tool

MTAプロジェクトのビルドを行うために必要
ダウンロード方法:https://sap.github.io/cloud-mta-build-tool/download/

・Windowsの場合
https://sap.github.io/cloud-mta-build-tool/makefile/

・macの場合
https://sap.github.io/cloud-mta-build-tool/troubleshooting/

Cloud Foundry Command Line Interface (CLI)

SAP Cloud Platform Cloud Foundry環境へ接続するために必要
ダウンロード手順:https://developers.sap.com/tutorials/cp-cf-download-cli.html

デプロイ手順

1.ビルドを行う

以下のコマンドを実行してビルドを行う。

mbt build

2.SAP Cloud Platform Cloud Foundryへログインする

以下のコマンドを実行してCloud Foundryへログインする。
メールアドレスとパスワードを入力し、デプロイを行いたい環境を指定する。

cf login

3.指定した環境へ.mtarファイルをデプロイする

以下のコマンドを実行してデプロイを行う。
1.を実行した際に、mta_archivesディレクトリ内に.mtarファイルが作成されるので
そのファイルを指定する。

cf deploy mta_archives/xxxxxxxxxx.mtar 
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0