Uploading your code

If you're not using GitHub, or don't want to connect your account, you may upload your code. To upload your application, go to the code tab and upload your file.

Installing packages

We do not recommend including directories that were created from packages managers such as NPM and Composer. To install dependencies, run migrations, and other tasks, please use the after.upload deployment hook.

This file should be created under a top level .amezmo directory in your application root. The following snippet illustrates the directory structure for hooks.

# A sample application directory.
├── .amezmo
│   ├── after.upload
├── app
├── storage
├── public
├── .env

A Configuration file, .env, will be placed into your root deployment directory automatically. This will overwrite any existing .env file your archive may have.

Creating the archive file

The following is the recommended command for creating your source code archive. This command should be run from your application's root directory on your local machine.


# For zip
# Replace <application directory> with your application directory.
cd <application directory>
zip --exclude '*vendor/**' --exclude '*node_modules/**' --exclude '*.git/**' -r app.zip  .

Upon importing your source code, Amezmo will extract the contents into a new deployment directory and the contents of this directory will be the contents of <application directory>.

Amezmo runs the following command on your instance for .zip file imports.


Supported file formats

  • .zip (application/zip)

File Size Limits

  • 25MB
Need support?

We're always happy to help with either application or infrastructure questions Always feel free to reach out to us on Twitter, or contact support.