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

Node.js vs V8Js #2

Open
marsnow opened this issue Jul 20, 2019 · 1 comment
Open

Node.js vs V8Js #2

marsnow opened this issue Jul 20, 2019 · 1 comment

Comments

@marsnow
Copy link
Contributor

marsnow commented Jul 20, 2019

spatie/laravel-server-side-rendering
可以用以上兩種方式產生 ssr 的檔案

如果使用 Node.js 目前的設定只有再 circleci build 的時候短暫的加進來而已
web 這個 image 本身沒有安裝 Node.js
所以 laravel 會說

Error Output:
================
sh: 1: /usr/bin/node: not found

然而使用 V8Js,今日測試的結果似乎是因為 docker 裡的 os 是 Debian 怎麼測試都無法完成安裝
以下是測試的主要設定 其他設定 forked from Linc70J/lavawhale
Dockerfile

###########################################################################
# V8Js:
###########################################################################

ARG INSTALL_V8Js=false

RUN if [ ${INSTALL_V8Js} = true ]; then \
  apt-get install -y software-properties-common && \
  add-apt-repository -y ppa:ondrej/php && \
  add-apt-repository -y ppa:pinepain/libv8 \
;fi

RUN if [ ${INSTALL_V8Js} = true ]; then \
  apt-get -y install libv8-dev \
;fi

RUN if [ ${INSTALL_V8Js} = true ]; then \
  pecl install v8js && \
  docker-php-ext-enable v8js \
;fi

以及參考官方的做法都無法安裝
v8js/README.Linux.md

@marsnow
Copy link
Contributor Author

marsnow commented Jul 20, 2019

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

No branches or pull requests

1 participant