First, just go to your project directory in command line:
cd [your project directory]
And then just type:
Under the hood, openode deploy is in fact doing the following commands:
openode sync openode template openode restart
If you just need to synchronize your remote repository, just hit the following command:
It will ensure that your local file changes are sent to our remote repository.
If you add a .openodeignore file in your repository, the list of files provided in this file will get ignored (not sent). The format is to the well known .gitignore. Just use .openodeignore to list your files to ignore. You can of course also have a .gitignore used for git in your repository.
Notice that we do not support wildcards, such as thisfolder/* or thisfolder/**/*.txt. Example .openodeignore we support:
logs/ passwd.txt testfolder/withsub-folder/
If you just need to deploy your instance with no files synchronization, it can be done via:
To simply reload your container, the following command can be used:
Note that it must already be online.
To minimize downtime on deployment, the following option can be activated:
openode set-config BLUE_GREEN_DEPLOYMENT true
When you deploy, it will first create a new instance, and when it's ready, it will remove the old version of your instance, which will minimize downtime.
You can specify the number of replicas, which will allow to deploy more than 1 instance of your application.
openode set-config REPLICAS <number>
where number is the number of replicas.