このパッケージにしてイロイロ出来ない。
@
pkgin で SSL support disabled:
例えば pkgin で
% doas pkgin update
processing remote summary (https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.1/ALL)...
SSL support disabled
SSL support disabled
SSL support disabled
pkgin: Could not fetch https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.1/All/pkg_summary.gz: Authentication error
%
@
curl コマンドで https アクセスしてみる:
% curl https://cdn.netbsd.org/
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
:
:
% curl https://www.3rdmedia-jp.net
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
:
:
% curl http://www.3rdmedia-jp.net
<HTML>
<HEAD>
<META HTTP=EQUIV="Content-Type" CONTENT="text/html;CHARSET=x-sjis">
<TITLE>3rd MEDIA Community TopPage</TITLE?
</HEAD>
<BODY BGCOLOR="#ffffcc">
:
:
curl コマンドで http にはアクセスできてるみたいなので SSL まわりの問題か?
昨日までに、Plone6,Voltoがインストールできた。
% pwd
<Path to work>/plone6
% bin/instance start
バックエンドでPlone6が動く
% cd <Path to work>volto
% yarn start
command not found: razzle
razzle なるものが必要そうだ。
@
何はともあれ、pkgsrc/lang/nodejs22:
npm (command) を使うためにこのパッケージをインストールする。
% install nodejs-22 from pkgsrc(pkgin)
@
create-razzle-app を実行:
% cd <Path to work>
% npm create-razzle-app myrazzle
Need to install the following packages:
Create-razzle-app@4.2.18
Ok to proceed? (y)
Creating myrazzle...
> Success! Created files for "myrazzle" razzle app
Installing npm modules:
> Success! Installed dependencies for myrazzle
Awesome! You're now ready to start coding.
I already ran npm install for you, so your next steps are:
cd myrazzle
To start a local server for development:
npm start
To builda version for production:
npm run build
To run the server in production:
npm rn start:prod
:
@
npm start (インストール完了後):
npm create-razzle-app 完了後
% cd <Path to work>/myrazzle
% npm start
> my-razzle-app@4.2.15 start
> razzle start
[][][][] Compiling...
レ Client
Compiled successfully in 1.92s
レ Server
Compiled successfully in 190.81ms
[] server-side HMR Enabled!
sswp > Handling Hot Module Reloading
> Started on port 3000
この後同じホストのfirefoxで
http:localhost:3000/
にアクセスして動いていることを確認
@
yarn アップグレード 最新安定版:
pkg_add node-22.12.0 from pkgsrc-2024Q4
pkg_add yarn-1.22.22 from pkgsrc-2024Q4
安定板の最新にするには
% yarn -v
1.22.22
% doas yarn set version stable
YN0000: You don't seem to have Corepack enabled; we'll have to rely on yarnPath instead
> YN0000: Downloading https://repo.yarnpkg.com/4.9.1/packages/yarnpkg^cli/bin/yarn.jp
> YN0000: Saving the new release in .yarn/release/yarn-4.9.1.cjs
YN0000: Done with warnings in 0s 137ms
% doas yarn install
> YN0000: - Yarn 4.9.1
> YN0000: Resolution step
> YN0000: Completed
> YN0000: Fetch step
> YN0000: Completed
> YN0000: Link step
> YN0000: Completed
> YN0000: - Done in 0s 114ms
% yarn -v
4.9.1
%
@
インストール create-volto-app:
% pwd
/home/owner
% npm install @plone/create-volto-app
% ll /home/owner/node_modules/.bin
create-volto-app -> ../@plone/create-volto-app/bin/create-volto-app.js
mkdirp -> ../mkdirp/bin/cmd.js
which -> ../which/bin/which
% more .bin/create-volto-app
#! /usr/bin/env node
:
:
% cd /home/owner/work
% /usr/pkg/bin/node /home/owner/node_modules/.bin/create-volto-app myvolto
/home/owner/node_modules/@plone/create-volto-app/volto-starter-kit
Creating myvolto...
> Success! Created files for "myvolto" Volto app
Installing npm modules:
@plone/volto
> Success! Installed dependencies for myvolto
Awesome! You're now ready to start coding.
We already ran yarn for you, so your next steps are:
cd myvolto
To start a local server for development:
yarn start
To build a version for production:
yarn build
To run the server in production:
yarn start:prod
:
: