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.
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.
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
.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.
#!/bin/bash # 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.
unzip -q -DD -o $SOURCE_FILE -d $TARGET_DIRECTORY;
Supported file formats
File Size Limits