1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

wardenで作ったmagentoの環境にサンプルを入れていくまでの流れ。

Posted at

はじめに

wardenで作ったmagentoの環境にサンプルを入れていくまでの流れ。

最終更新日

2021年12月13日

環境の情報

OS
Ubuntu20.04

注意

最新の状態を確認して下さい。
環境は構築できている前提となります。

公式はこちら

準備

マーケットプレイスで作ったキーをご用意下さい。

実際に行っていく。

シェルして、入ります。

~/作ったプロジェクトの場所$ warden shell

入れていることを確認します。

www-data@project-php-fpm:/var/www/html$ ls
CHANGELOG.md         app               generated                 project
COPYING.txt          auth.json.sample  grunt-config.json.sample  pub
Gruntfile.js.sample  bin               lib                       setup
LICENSE.txt          composer.json     nginx.conf.sample         var
LICENSE_AFL.txt      composer.lock     package.json.sample       vendor
SECURITY.md          dev               phpserver

サンプルデプロイしていきたいと思います。

Username:
Password: 

には、マーケットプレイスで作ったものを入れます。

www-data@project-php-fpm:/var/www/html$ bin/magento sampledata:deploy

Authentication required (repo.magento.com):
Username:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Password: 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

auth.jsonは、はいです。

Do you want to store credentials for 
repo.magento.com in /var/www/html/var/composer_home/auth.json ? [Yn] yn

このように、ダウンロード始まれば大丈夫かと思います。

- Installing magento/sample-data-media (100.4.0): Downloading (100%)

終わりましたら、こんな感じになります。

Writing lock file
Generating autoload files
120 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
PHP CodeSniffer Config installed_paths set to ../../magento/magento-coding-standard,../../phpcompatibility/php-compatibility

終わりましたら、アップデートします。

www-data@project-php-fpm:/var/www/html$ bin/magento setup:upgrade
Cache types config flushed successfully
Cache cleared successfully
File system cleanup:
/var/www/html/generated/code/Composer

サイトを見に行き、ナビゲーションなど表示されるようになりましたら、問題ありません。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?