deploy/heroku/README.MD
Quickly set up Appsmith to explore product functionality using Heroku.
Sign up for a free account on Heroku
Fill in the required Config Variables including:
APPSMITH_ENCRYPTION_PASSWORD: Encryption password to encrypt all credentials in the databaseAPPSMITH_ENCRYPTION_SALT: Encryption salt used to encrypt all credentials in the databaseAPPSMITH_DB_URL: Your Mongo Database URI(Optional) Customize the default settings in Heroku
App Name: Optionally select a name for your application (this will be used in the app URL)
Runtime Selection: Select which region your app should run in (United States or Europe)
Config Variables:
APPSMITH_MAIL_ENABLED: Set this value to true to enable email sending (value should be true/false only)APPSMITH_MAIL_FROM: Email ID using which emails will be sent from your installationAPPSMITH_REPLY_TO: Email ID to which all email replies will be sent toAPPSMITH_MAIL_HOST: The host endpoint for the SMTP serverAPPSMITH_MAIL_SMTP_TLS_ENABLED: Set this value to enable TLS for your SMTP server (value should be true/false only)APPSMITH_MAIL_USERNAME: SMTP usernameAPPSMITH_MAIL_PASSWORD: SMTP passwordAPPSMITH_OAUTH2_GOOGLE_CLIENT_ID: Client ID provided by Google for OAuth2 loginAPPSMITH_OAUTH2_GOOGLE_CLIENT_SECRET: Client secret provided by Google for OAuth2 loginAPPSMITH_OAUTH2_GITHUB_CLIENT_ID: Client ID provided by Github for OAuth2 loginAPPSMITH_OAUTH2_GITHUB_CLIENT_SECRET: Client secret provided by Github for OAuth2 loginAPPSMITH_DISABLE_TELEMETRY: We want to be transparent and request that you share anonymous usage data with us. This data is purely statistical in nature and helps us understand your needs & provide better support to your self-hosted instance. You can read more about what information is collected in our documentation https://docs.appsmith.com/product/telemetryAPPSMITH_RECAPTCHA_SITE_KEY: Google reCAPTCHA v3 site key, it is required if you wish to enable protection against spam/abusive users. Read more at: https://developers.google.com/recaptcha/docs/v3APPSMITH_RECAPTCHA_SECRET_KEY: Google reCAPTCHA v3 verification secret key, it is required if you wish to enable spam protection in your backend server.APPSMITH_RECAPTCHA_ENABLED: Boolean config to enable or disable Google reCAPTCHA v3 verification feature. If set to true, both site key and secret key should be provided.APPSMITH_DISABLE_INTERCOM: Set this value to true to disable intercom (value should be true/false only)After Heroku finishes setting up the app, click “View” and your Appsmith should be up and running. You will be taken to the account creation page, where you can enter credentials to create an account and get started.
{% hint style="warning" %}
To create your custom domain with your app, please follow these steps below:
Go to your app's settings tab
Click Add domain button in Domains section
Input your domain name & click Next. Heroku will provide you a DNS Target that you can map your domain with
Make sure that your DNS Record is update so that your custom domain will map to DNS Target
Once you finish, now you can access Appsmith from your custom domain
{% hint style="warning" %}
hobby type to use this feature of heroku{% endhint %}
To re-deploy your app (re-build & re-run), make sure you have Docker & Heroku CLI setup locally then follow steps below:
heroku folder:
git clone --branch master https://github.com/appsmithorg/appsmith
cd ./appsmith/deploy/heroku
heroku login
heroku container:login
heroku apps
heroku container:push web -a <Your App Name>
heroku container:release web -a <Your App Name>