我误删了我的日常工作目录 - 记一次命令行误操作
某天做日常工作的时候遇到了一个小问题,有一个在远程的开发机(不是任何的部署环境)中的测试不能通过。因为相同的测试在本地是可以通过的,于是我打算将远程的代码目录直接通过 rsync
同步到本地来二次检查测试是不是由于不同内核导致,还是由于测试顺序随机导致的。
某天做日常工作的时候遇到了一个小问题,有一个在远程的开发机(不是任何的部署环境)中的测试不能通过。因为相同的测试在本地是可以通过的,于是我打算将远程的代码目录直接通过 rsync
同步到本地来二次检查测试是不是由于不同内核导致,还是由于测试顺序随机导致的。
When using projectile
to manage a project folder, we can customize the project’s properties to
help us more easily to build / test / run the project.
You can simply add a Dockerfile
which looks like:
1 | FROM node:alpine AS builder |
Then call docker build -t image:tag .
to build your own blog. To run the blog locally, you can simply run command docker run -p {host_port}:80 image:tag
.
Caution
This post will give a short instruction to serve your own static website (i.e. a website only contains static assets).