友情提醒:如果下面的内容你看不懂,切莫头铁硬上。那么多现成云工具,总有几款适合你
composer install
VueJs v2
npm install;npm run prod
or
yarn;yarn prod
nvm use
根据你本地LAMP/XAMP的情况,设置.env文件
sake dev/build flush=all
到CITA群志愿者群里提问
我也不是你老师
有。来到CITA群志愿者群里提问
君子袒蛋蛋,小人藏鸡鸡 -- 那您的意思是?
往下看
- Generate oauth encryption key and set
OAUTH_ENCRYPTION_KEY
in .env filephp -r 'echo base64_encode(random_bytes(32)), PHP_EOL;'
- Create new OAuth Client in the CMS backend (/admin > OAuth Clients)
- Add a Secret and keep a note of it
- Add client ID and Client Secret to
.env.local
- Add
VUE_APP_OAUTH_CLIENT_ID="client id"
andVUE_APP_OAUTH_CLIENT_SECRET="client secret"
- Add
There are pre-generated certificates that are used for the OAuth server the can be found in app/certs
the are directories
for every environment (dev, test, live).
When setting up the project run the following commands to set the correct permissions on the certs.
chown [user]:[webserver-user] app/certs/[env]/private.key
chown [user]:[webserver-user] app/certs/[env]/public.key
chmod 660 app/certs/[env]/private.key
chmod 660 app/certs/[env]/public.key
If the permissions aren't set correctly you will get 500 errors from the auth api.
Run the following commands to generate certificates.
openssl genrsa -out private.key 4096
openssl rsa -in private.key -pubout -out public.key
From the directory of your project:
docker-compose build
docker-compose up -d
Your site will be visible at http://localhost:8080