CodiMD Manual Deployment
Manual deployment is the best when you're developing CodiMD. If you are deploying the service for production use, Docker Deployment is faster and easier choice.
Requirements
- Node.js 10.x LTS up to .
- DatabasySQL)
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Hint:
- You could use other DBMS, such as: MariaDB, SQLite, or MSSQL, BUT we recommend only PostgreSQL or MySQL.
- We will only support PostgreSQL and MySQL in future database migrations, if any.
- npm
libssl-dev
for building scrypt (see here for further information)
- Bash (for the setup script)
- For building CodiMD we recommend using a machine with at least 2GB RAM
Deployment Steps
- Clone the CodiMD repository.
- Enter the directory, install npm dependencies and create configs.
-
Configure the instance with:
-
Build front-end bundle with webpack.
-
Modify the file named .sequelizerc
, change the value of the variable url
with your db connection string.
For example: postgres://username:password@localhost:5432/codimd
-
Start the engine:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Hint: If you are developing and want webpack to continuously rebuild the front-end code, use:
To auto-reload the server, you could use nodemon and run: