Homestead에 AsgardCms를 설치해 보았습니다.

전치



Laravel제의 CMS로서는 OctoberCMS가 유명할까라고 생각합니다만, 디렉토리 구성이 Laravel의 디폴트와는 다르거나 해 조금 마음에 들지 않았기 때문에 사용하지 않았습니다.

그런 가운데, 우연히 AsgardCms의 존재를 알았으므로, 조금 사용해 보고 싶습니다.

AsgardCms란?



본가

Laravel5로 만들어진 다언어 대응의 CMS라고 합니다.

설치



Homestead를 이용하여 움직입니다. Homestead의 환경 구축 방법 등은 할애합니다.
알고 싶은 분은 이건 를 참고해 주세요. (내가 시도한 Homestead는 7.5.0이었다.)

기본적으로는 공식 도입 방법 해설 페이지 그대로 실행해 갑니다.
다음 작업 내용은 Homestead 환경에서 작동합니다. 적당히 자신의 환경에 맞추어 읽어 주세요.

AsgardCMS 설치 관리자를 통해



AsgardCMS 설치 프로그램 설치



공식에있는대로 composer를 사용하여 설치.
composer global require asgardcms/asgardcms-installer

순조롭게 흥미롭고, 굉장히 긴 오류가 나왔습니다. 이하, 발췌.

Problem 1
- Installation request for asgardcms/asgardcms-installer ^0.6.0 -> satisfiable by asgardcms/asgardcms-installer[0.6].
- Conclusion: remove symfony/console v4.0.6
- Conclusion: don't install symfony/console v4.0.6
- asgardcms/asgardcms-installer 0.6 requires symfony/console ~2.7|~3.0

symfony/console의 버전 불일치와 같습니다.
분명히 Laravel 5.6에서 symfony/console v4.0.6이 된 것 같습니다.
이번에는 laravel5.6과 함께 global에 기본적으로 들어 있던 모든 라이브러리를 제거하고 해결합니다.
composer global remove laravel/laravel
composer global remove laravel/envoy
composer global remove laravel/installer
composer global remove laravel/lumen-installer
composer global remove laravel/spark-installer
composer global remove drush/drush

부정합을 일으키고 있던 symfony/console 도 언인스톨 되었을 것입니다.
그럼 신경을 쓰고 다시 AsgardCms 설치 프로그램을 설치.
composer global require asgardcms/asgardcms-installer

잘 작동했습니다. 마지막으로 관례에 따라 vesrion을 출력해 둡시다.
vagrant@homestead:~$ asgardcms -V
AsgardCms Installer 1.0.0

프로젝트 만들기



설치 프로그램을 사용하여 프로젝트를 만듭니다.
Homestead를 디폴트로 움직이고 있는 경우는 nginx의 문서 루트가/home/vagrant/code/public이 되어 있을 것이므로, 프로젝트명은 code로 해 두는 것이 귀찮지 않습니다.
asgardcms new code

상당히 시간이 걸렸습니다만, 무사 설치 완료.

AsgardCMS 설치



작성한 프로젝트의 디렉토리(=기사의 예라고 code 디렉토리)로 이동하여 다음 명령을 실행합니다.
php artisan asgard:install

env 파일을 창조하기 위하여 다양한 들리기 때문에 마음에 드는 것에 응답한다.
Homestead의 디폴트가 디폴트의 선택지가 되어 있는 것 같다.

Enter your database driver (e.g. mysql, pgsql) [mysql]:
Enter your database host [127.0.0.1]:
Enter your database port [3306]:
Enter your database name [homestead]:
Enter your database username [homestead]:
Enter your database password (leave for no password) [secret]:
Enter you application url (e.g. http://localhost , htp : //에서 v. 그래 mpぇ. 이 m ) [ http://localhost]:

이하, 관리용의 어카운트 정보를 듣기 때문에 대답해 간다.

Enter your first name:
Enter your last name:
Enter your email address:
Enter a password:
Please confirm your password:

마지막으로, gitignore에 대해서도 듣기 때문에 취향에 대답한다.

Do you want to remove composer.lock from .gitignore ? (yes/no) [yes]:
Do you want to remove package-lock.json from .gitignore ? (yes/no) [yes]:

여기까지 끝나면 브라우저로 액세스 확인.

프론트 엔드 쪽은 http://localhost


백엔드 측은 http://localhost/backend


정리 & 감상



설치는 매우 쉬웠습니다. 앞으로 기능의 정사 등을 해보고 싶습니다. 워드프레스 당 비교와 씹어 도미.

좋은 웹페이지 즐겨찾기