Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel local repository Deploy issue #3

Open
koshuang opened this issue Apr 19, 2019 · 3 comments
Open

Laravel local repository Deploy issue #3

koshuang opened this issue Apr 19, 2019 · 3 comments
Labels

Comments

@koshuang
Copy link
Contributor

問題

在 Deploy 時,local repository 會用符號連結的方式,如果原本的 release folder 因為 rolling 的關係被砍掉了,則會出現失敗

解法

應該要把他設成不要用 symlink

缺點可能是在開發的時候,每次有修改都需要執行 composer require xxx,且一有更新一確定要 deploy 前,應該要改新版本,才能使迫使 composer.json 以及 composer.lock 被更新

@koshuang koshuang added the bug label Apr 19, 2019
@glennfriend
Copy link
Contributor

在 symlink = false 的情況下
如果要更新程式
要移除之後再重裝
如下

composer remove "prefix-name/package-name"
composer require "prefix-name/package-name:dev-master"

@glennfriend
Copy link
Contributor

接續上方

用 capistrano deploy 的時候
每次也都要下這兩行指令
不然程式碼內容永遠會是第一次 deploy 的檔案內容

@glennfriend
Copy link
Contributor

另一種可能的方案

vender 不做連結?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants