Commit Graph

50 Commits

Author SHA1 Message Date
Srijan R Shetty
8b8dcc050a
fix: use trap to run bye on errexit (#581) 2020-09-21 19:05:58 +05:30
Nikhil Nandagopal
d028011d7c
Updated events to track user id as IP 2020-09-16 19:51:02 +05:30
Nikhil Nandagopal
afc2f8d1a5 cherry picked install script update from release 2020-09-16 18:26:21 +05:30
Nikhil Nandagopal
3ec8b58cf8
Update install.sh 2020-09-16 16:00:27 +05:30
Nikhil Nandagopal
7ca32f0a01
Update install.sh 2020-09-16 15:27:44 +05:30
Nikhil Nandagopal
62d87da51f
Update install.sh 2020-09-09 11:40:26 +05:30
Nikhil Nandagopal
83907b50b7
Update install.sh 2020-09-08 11:37:31 +05:30
Nikhil Nandagopal
e214d77326
Update install.sh 2020-09-07 23:03:28 +05:30
Nikhil Nandagopal
a4defd4b28
Update install.sh (#505)
* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh
2020-09-07 22:23:24 +05:30
Nikhil Nandagopal
a0363691ab
Update install.sh 2020-09-07 20:30:51 +05:30
Nikhil Nandagopal
84d175dde1
Added anonymous tracking for installation 2020-09-07 16:36:14 +05:30
Shrikant Sharat Kandula
681a4bdcc9
Fix Let's Encrypt certificate generation for self-hosted (#491)
* Creating SSL certificates now works

* Work with single domain

* Move certificate generation into install script

* Download templates from master branch, not release
2020-09-03 18:04:58 +05:30
Shrikant Sharat Kandula
868757155a
Add watchtower for auto updates to Appsmith containers (#456)
* Trying to move horizontal rules into separate function

* Delete install_dir if exists already, after confirmation

* Add confirm function to take user conformations

* Resolve warnings on read command without -r option

* Use temporary directory for downloaded templates

* Fix inverted calls to confirm

* nginx template doesn't use global variables now

* docker compose template doesn't depend on global vars now

* Fix port checking for CentOS

* Fix encryption.env to not use global variables

* Fix mongo-init to not use global variables

* Fix docker.env file to not use any global variables

* Fix letsencrypt script to not use any global variables

* Set mongo_database in the docker-compose file

Spotted this after global variables were reduced. The `mongo_database`
was not being used anywhere.

* Move password generation into a function

* Attempt to add watchtower

* Fix port checking in install script for CentOS

* Don't offer to delete install dir if it already exists

* Remove vagrant source for templates (it's a dev-time thing only)
2020-09-02 16:42:33 +05:30
Hetu Nandu
0b430d0324
Completely replace hotjar with smartlook (#447)
* Replace hotjar with smartlook

* Remove duplicate event declaration
2020-08-27 18:24:03 +05:30
Nikhil Nandagopal
9933464d1f
Disabled centOS and redHat 2020-08-21 14:12:17 +05:30
Shrikant Sharat Kandula
aa4635420f
Fix bc command not found in RHEL in install script (#391) 2020-08-21 13:56:40 +05:30
Nikhil Nandagopal
2b9deed5fa
Update install.sh 2020-08-20 20:24:27 +05:30
Hetu Nandu
f70c55c681
Show warning when mail client is not enabled on an instance (#333)
* Adds the `APPSMITH_MAIL_ENABLED` flag on client
* Shows warning if email service not configured for inviting users in an org
* Shows warning if email service not configured for password reset
2020-08-20 10:43:20 +05:30
Shrikant Sharat Kandula
85974daa9b
Fix bugs in install.sh (#361)
* Exit if running with sudo on macOS

* Fix port checking failing if 8080 is occupied

Also, ports on Linux (especially Ubuntu) are reported as
`:80`, and macOS reports as `.80`, so we have to handle
them both.

* Move goodbye message to a function

* Fix installation fail when path contains space

* Fix script exits after `up` if already running

If there's a project by the name `appsmith` already running
in the docker namespace, then the command `docker-compose up`
is exiting with a non-zero status. This causes the script to
exit because it looks like an error.

* Timeout display now shows a decreasing timer in the message

* Fix docker service not being started correctly on Linux

* Show custom domain in final message, if available
2020-08-20 10:22:22 +05:30
Arpit Mohan
a7c4fe697e Merge branch 'master' into release
# Conflicts:
#	README.md
#	app/client/yarn.lock
#	deploy/install.sh
2020-08-17 16:33:37 +05:30
Arpit Mohan
88c45118e7
Encoding the mongo credentials in install.sh script (#310)
This is to ensure that we handle special characters in the mongo url that's given to the Java server during configuration.
2020-08-17 11:10:01 +05:30
Apoorv Mishra
dc10566740
Update install.sh to install docker-compose separately (#319)
Fixes #318

The issue occurred because code assumes that if docker is already installed, docker-compose would have been installed too. This PR is an attempt to fix it.
2020-08-16 17:36:34 +05:30
Hetu Nandu
7f8befc365
Update support menu (#259)
Add a default help menu with
* Report a Github issues link
* Documentation link
* Github discussions link
* Intercom link support
* App version id support
2020-08-14 15:17:47 +05:30
Arpit Mohan
07605dae0a
Enforcing non-empty credentials for Mongo during installation (#298)
* Enforcing non-empty credentials for Mongo when we spin up a Mongo container during installation

* Adding a check for server startup before completing the installation
2020-08-14 11:22:15 +05:30
Hetu Nandu
c937a149ee
Replace APPSMITH_MARKETPLACE_URL flag with APPSMITH_MARKETPLACE_ENABLED (#197) 2020-08-07 13:05:38 +05:30
Nikhil Nandagopal
e768e5d131
Fix/copy changes (#218)
* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

* updated template

* removed debug echo

* Updated Script

* Updated Text

* Removed option to connect to external mongo for fresh installs
Exit script of docker desktop is not installed

* Updated docker installation explanation

* added a question to skip custom domain if user is installing locally

* Inverted script question and

* Removed question to determine local installation

* Updated Popup CTA to Modal
Updated query templates to contain bindings
Added a message to display on API / Query errors

* updated styles for evaluated value
updated styles for auto complete

* added spaces to questions

* grouped data tree functions together in autocomplete

* Updated autocomplete styles

* Updated property pane styles to become more dense

* Fixed lightning menu styling

* fixed tests

* Fixed Cypress test

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-08-05 13:03:44 +05:30
Nikhil Nandagopal
f7cf7e1182
Fix/copy changes (#210)
* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

* updated template

* removed debug echo

* Updated Script

* Updated Text

* Removed option to connect to external mongo for fresh installs
Exit script of docker desktop is not installed

* Updated docker installation explanation

* added a question to skip custom domain if user is installing locally

* Inverted script question and

* Removed question to determine local installation

* Updated Popup CTA to Modal
Updated query templates to contain bindings
Added a message to display on API / Query errors

* updated styles for evaluated value
updated styles for auto complete

* added spaces to questions

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-08-04 17:51:02 +05:30
Arpit Mohan
3faaabbd31
Minor fix to create certbot directories during installation (#211) 2020-08-03 21:07:40 +05:30
Arpit Mohan
4a62da9b36
Modifying the docker-compose templates to only expose required ports (#207)
* Modifying the docker-compose templates to only expose required ports from Nginx

* Also, adding function to check if the required ports are open & available for use by Appsmith
2020-08-03 20:32:54 +05:30
Nikhil Nandagopal
0cb4d3733c
Fix/deploy script (#206)
* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

* updated template

* removed debug echo

* Updated Script

* Updated Text

* Removed option to connect to external mongo for fresh installs
Exit script of docker desktop is not installed

* Updated docker installation explanation

* added a question to skip custom domain if user is installing locally

* Inverted script question and

* Removed question to determine local installation

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-08-03 18:20:55 +05:30
Arpit Mohan
6bd994a9ba
Removing the option --nobest from the apt install command (#196) 2020-07-30 11:18:48 +05:30
Nikhil Nandagopal
45163c5f99
Updated installation script (#172)
* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

* updated template

* removed debug echo

* Updated Script

* Updated Text

* Removed option to connect to external mongo for fresh installs
Exit script of docker desktop is not installed

* Updated docker installation explanation

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-07-27 12:52:53 +05:30
Nikhil Nandagopal
74756a25b1
Fix/deploy script (#170)
* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

* updated template

* removed debug echo

* Updated Script

* Updated Text

* Removed option to connect to external mongo for fresh installs
Exit script of docker desktop is not installed

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-07-27 12:25:45 +05:30
Shrikant Sharat Kandula
32095c85ed
Use single sed command with multiple expressions (#127)
Processing the text in-memory, we won't have to deal with the platform dependency of the `-i` argument to `sed`.
2020-07-22 17:23:49 +05:30
Arpit Mohan
33e2f90de3
Updating the path to download the script during AMI creation (#137) 2020-07-22 09:06:59 +05:30
Manish
391347224d
adding base-install.sh and boot.sh (#92)
Adding the following files in order to create the AWS AMI 
* boot.sh
* base-install.sh
* configure-ssl.sh file to run to modify app.conf file of nginx and to run init-letsencrypt.sh which generate SSL certificate.

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
Co-authored-by: Arpit Mohan <arpit@appsmith.com>
2020-07-21 16:54:08 +05:30
Arpit Mohan
a4fd349c0b
Fixing the sed command for mac os x in Nginx configuration template. (#126) 2020-07-20 17:51:10 +05:30
Arpit Mohan
eabe496fbd
Adding the /login endpoint to nginx configuration template during deploy process (#122) 2020-07-17 18:31:14 +05:30
Nikhil Nandagopal
70c4dd5964
Fix/deploy script (#111)
* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

* updated template

* removed debug echo

* Updated Script

* Updated Text

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-07-17 15:29:28 +05:30
Arpit Mohan
dad70efcbd
Fixing the nginx configuration used as template during deployment (#115) 2020-07-17 01:05:42 +05:30
Trisha Anand
d111df5e9e
Updated encryption setup in build and deploy script (#112)
* Incorporated review comments on encryption setup in build and deploy script.
2020-07-16 15:51:52 +05:30
Arpit Mohan
1060423b99
Modifying deploy script to replace nginx configuration at runtime (#106)
* Getting the script to work on Mac OS X Bash Version 3

* Correcting the nginx template configuration and Dockerfile for the appsmith-editor. Now any replaced environment variables will be replaced when the Nginx Docker container restarts.
2020-07-16 11:47:45 +05:30
Arpit Mohan
c15f83dbc3
Adding configuration variables for MAIL_FROM and REPLY_TO in EmailConfig (#97)
The MAIL_FROM & REPLY_TO addresses default to appsmith@localhost. This should be changed in the generated docker.env file during deployment to actual values.

Most email providers will not send emails unless they originate from a valid sender ID.
2020-07-15 15:47:33 +05:30
Nikhil Nandagopal
de151e1b46
Fix/deploy script (#94)
* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-07-15 12:49:52 +05:30
Trisha Anand
fd0f23b9cc
Database credentials encryption in MongoDB (#80)
* Encrypting the password stored in AuthenticationDTO for every db.

* Adding comment to the properties file to denote that adding encryption salt and password are mandatory to the server coming up.

* Added the encryption salt and password to server.yml to allow the github actions to succeed.

* Adding database migration to encrypt the existing passwords for authentication object (used for storing db connection username/password)

Changes to the installation script install.sh:

1. Instead of overwriting the existing encryption password or salt, giving the user an option to conserve the previous encryption credentials to ensure that the developer users do not lose access to their database configurations (passwords).
2. Added another file for writing encryption credentials (encryption.env) to ensure that we dont delete the encryption password and salt by mistake.
2020-07-14 14:45:08 +05:30
Manish
2c15487d1b
Deployment script now works on Mac OS X (#86) 2020-07-13 23:29:37 +05:30
Nikhil Nandagopal
d133f9f839
Fix/deploy script (#83)
* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-07-13 16:57:46 +05:30
Manish
a193125093
Starting docker daemon if not already running (#82) 2020-07-13 16:00:53 +05:30
Nikhil Nandagopal
999239cefa
Update install.sh (#79)
* Update install.sh

* Update deploy/install.sh

Co-authored-by: Arpit Mohan <mohanarpit@users.noreply.github.com>

Co-authored-by: Arpit Mohan <mohanarpit@users.noreply.github.com>
2020-07-10 19:29:34 +05:30
Arpit Mohan
4e08e69351
Adding the deployment shell script for Linux instances (#62)
TODO: Need to add checks for MacOS machines as well.

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2020-07-10 19:18:42 +05:30