How to Deploy
Deploy to the Cloud
Follow the steps below to deploy using your Project ID and API key.
The following steps require the morph
command. If it is not installed, run the command pip install morph-data
to install it.
Docker is required to build the Morph application; if you do not have Docker installed, please install it from the official Docker website.
1
Deploy to the cloud
Run the following command to deploy to the cloud:
Shell
- To disable Docker cache, use:
Shell
After deployment, log in to https://app.morph-data.io/, and check the results.
2
Set up your project
- Navigate to the root directory of your project:
Shell
- Edit the
morph_project.yml
file in the root directory to set theproject_id
:YAML- The
profile
corresponds to the section in~/.morph/credentials
. Typically,default
is sufficient, but modify it if you have multiple credentials. - The
package_manager
is set to the selected package manager when the project was created. Normally, you do not need to change this. Themorph deploy
command builds based on this setting.- If
package_manager=pip
is specified, edit therequirements.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.
- If
- The
3
Set up the morph CLI
Run the following command to configure the API key in ~/.morph/credentials
:
Shell