I am trying to figure out the steps for the deployment and the best practices in order to move from the local environment(Linux-lampp) to production. Can someone enlight me on this subject?
npm + grunt + npm fs-sync + lftp
Does anyone have an intelligent response to this?
Perhaps some complete words and some hyperlinks?
Here is some hyperlink to use: https://www.google.com :-)
Grunt is task runner (http://gruntjs.com/) - you can use it for running tasks for building your app (convert less, sass files, minify images, create image spirtes, copy changes files over FTP). You can specify more environment - deploy to beta or www.
Lftp - CLI FTP client
fs-sync - library used in Grunt to manage FTP connection and transfer files
You can also use some SaaS products: codeship.com (I try it with October build 183 and works well)
Great, thanks Vojta! How would one use npm for an October CMS site?
Through npm you can download and install libraries for different purpose - converting Less/Sass (for example in themes), creating minify image, create favicons (also for iPhone devices), and millions others.
By Grunt you can create some tasks, e.g. "beta_deploy" or "beta_deliver" or "compile_less" or whatever you want.
I recommend combination lftp and fs-sync (https://www.npmjs.com/package/fs-sync) to manage your deployment by FTP protocol. At first you shoud build you project (create minified CSS/JS, image sprites, clear cache, composer install, npm install, etc). In second phase you create some maintenance.html file on production. Then you copy all changes files to production, and after that you remove maintenance file.
You should build this environment at own, because everybody has own processes and requirements.
Hi guys If you are familiar with github and it is the best choice for deploying.
Personally I use DeployBot on DigitalOcean VPS instances managed with ServerPilot and have the following commands set to run after deploying via deploybot:
php artisan composer install php artisan october:up php artisan october:mirror public
1-9 of 9