Version Migration Guide
This page contains information about changes between each versions and how you can migrate from one version to another.
Morph 0.2.1 to 0.3.0
Dockerfile Update: Frontend Build
In v0.3.0, frontend build has been added. If you are running morph deploy
from a local environment, please update your Dockerfile as follows:
morph_project.yml
Update
In v0.3.0, the configuration of morph_project.yml
has been changed. Please refer to this reference for details.
Frontend Update
In v0.3.0, the frontend project structure has been changed.
Please follow these steps to update your project for migration:
- After installing
morph-data~=0.3
, run the following command- Run this command in the project root.
- If you are using venv or virtualenv, make sure to run it with the virtual environment activated.
- [Only if you had additional npm packages installed] Manually reinstall any packages you had installed.
Morph 0.1.9 to 0.2.0
Dockerfile Update: CMD Command Changes
The method for installing the execution command for apps built with Morph in the deployment environment has changed for the Github integration.
Specifically, it has changed from copying the api/app.py
file in the .morph/core/morph
directory created in the local environment to the deployment environment, to executing files installed as a package.
As a result, the entry point in the dockerfile has also changed for v0.2.0 and later when executing morph deploy
.
With the v0.2.0 changes, the CMD command generated by the morph new
command in the Dockerfile has been updated, so if you are using previous versions, please update your CMD command.
Adding the /static
Directory
In v0.2.0, a /static
directory was added to host static files. Files placed under /static
can be accessed from the frontend application.
If you are using a previous version, please create the /static
directory.
Morph 0.1.7 to 0.1.8
Dockerfile Update: Improved Streaming for <LLM />
and <Chat />
Components
Due to improvements in LLM streaming response behavior, the base image and CMD settings in the Dockerfile have been updated.
For v0.1.8 and later, the Dockerfile generated by the morph new
command will be initialized with the following structure:
Additionally, a .dockerignore file is now generated during initialization, and the COPY command has been modified to copy the entire directory while excluding files specified in .dockerignore, rather than copying individual files.
This means you no longer need to update the Dockerfile when the directory structure changes in your local development environment.