LoginSignup
3

More than 5 years have passed since last update.

posted at

updated at

Vagrant+Movable Type+AWS S3を使って月額10円~でサイトを運用する ~サンドボックス編~

目次

概要

MovableTypeのシステム設定や環境変数、テンプレートを変更したけど、イマイチだったりする時に元の状態に戻す方法

手順

Vagrantのサンドボックスプラグインをインストールする

「MT」フォルダに移動する
$ cd MT
サンドボックス用のプラグインをインストールする
$ vagrant plugin install sahara
ちゃんとインストールされているか確認する
$ vagrant plugin list

Movable Typeに変更を加える

サンドボックスモードに切り替える
$ vagrant sandbox on
仮想マシンを立ち上げる
$ vagrant up
サンドボックスの状態を確認する
$ vagrant sanbox status

Movable Typeに変更を加える

  • 変更がいまいちだった場合→(1)元の状態に戻す
  • 変更を気に入った場合  →(2)変更を反映する

(1)元の状態に戻す

$ vagrant sandbox rollback

(2)変更を反映する

$ vagrant sandbox commit

サンドボックスモードを終了する

$ vagrant sandbox off
仮想マシンをシャットダウンする
$ vagrant halt

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
What you can do with signing up
3