Create a Github repository
morph_project.yml
.Log in to morph-data.io and connect your Github account
Push your code
morph
command. If it is not installed, run the command pip install morph-data
to install it.Set up your project
morph_project.yml
file in the root directory to set the project_id
:
profile
corresponds to the section in ~/.morph/credentials
. Typically, default
is sufficient, but modify it if you have multiple credentials.package_manager
is set to the selected package manager when the project was created. Normally, you do not need to change this. The morph deploy
command builds based on this setting.
package_manager=pip
is specified, edit the requirements.txt
file in the root directory to specify the packages to install in the deployment environment. Otherwise, requirements.txt
is automatically generated during the build process.Set up the morph CLI
~/.morph/credentials
:Configure Python packages for the cloud environment
poetry
poetry update
command before deployment to update the poetry.lock file to the latest state.uv
uv sync
command before deployment to update the uv.lock file to the latest state.pip
Deploy to the cloud