CI/CD implementation Django application in cpanel - django

Hello everyone i am trying to upload my django project into cpannel automatially. I am able to upload my project from github to my cpannel using git version control, but i am not able to run my project into cpannel using git version control. I hope i will get the solulation over here and the you in advance.

Related

How to deploy files for Sitecore using TDS

I'm starting a new Sitecore 9 project using Helix and TDS. I've got my basic structure setup, using Hedgehog's fork of the Habitat site as a guide. I'm also referencing Hedgehog's docs.
My solution is just a start, so it's very simple right now, only a Foundation.Serialization module that contains the TDS projects for the basic layer folders and a Project.Website module that contains a TDS project and an MVC Website project (MVC)....it's got a basic Razor view and some random CSS/JS files.
The TDS Habitat readme, says to use Solution > Deploy Solution to deploy the projects. When I do this on my project it builds and the Sitecore items are deployed to Sitecore, but my Views and CSS/JS are not....presumably because I haven't configured anything to facilitate this.
Looking at the docs and the TDS Habitat solution, it's not clear to me how to configure TDS to know anything about how to deploy files. I'm finding info on the web that says that TDS will deploy files, transform configs, etc but with no examples of how to actually make that happen.
How do I set things up so Deploy Solution will also deploy files from all of the web projects in a solution to my local web root?
First, you will need to make sure the Sitecore Deploy Folder is set. From the documentation:
Sitecore Deploy Folder – Contains the path to the ROOT of the Sitecore
instance on the file system. This setting is used to install the TDS
Classic service when needed and to deploy the compiled code when the
TDS Classic project is built.
You also need to make sure that file deployment has not been disabled:
Disable File Deployment – Stops TDS Classic deploying files to the
directory specified in the Sitecore Deploy Folder.
If you are still not seeing the files being deployed, you will need to check if the process has access to the deploy folder.
You can also deploy files as a .update package and then use another automated tool to deploy the .update package to the target environment.
I figured out the issue. On the properties page for a TDS project there is a field where you indicate which projects should be built and deployed along with the sitecore items:
https://www.hhogdev.com/help/tds/propgeneral

Configure a remote project

I am starting a Django project. I'd like to connect this project in such a way my partner could work remotly and we can see the trackings and modifications on that project. What do you suggest to set up those configurations?
The program is called git, its not necessary use GitHub, Bitbucket to deploy your Django project in a server, also you can have a version control of your project and work with your patner without problems. Read this to deploy your Django project https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks#using-git-hooks-to-deploy-to-a-separate-production-server and this is git https://git-scm.com/

django on Pycharm professional edition

Can someone please guide me on How to use Django on Pycharm ?
Any descriptive steps or any link to videos would be very helpful..
I am using Python 2.7 with pycharm 4.5.4
Create a virtual environment
Create a new Django project
Add local interpreter for your project
It's simple as that.
Steps:
create github repository
create virtualenv
clone github repo into your virtualenv folder
inside github repo folder, create new django project
open the folder with pycharm
setup python interpreter
Enable Django support
setup Project Structure if needed
Switch to Django Template Engine
Have fun with Pycharm! it is an awesome IDE

Is it possible to deploy a django project to heroku without putting the project in git?

I was wondering if it is possible to deploy to heroku with out putting my django project on git?
My another question. I already have my app on heroku. Now I want to make changes to it. But the computer I had the soruce code crashed. So how do I download my project files from heroku?
No. ( But there is a plugin to do that, but I would say why bother. But.. - https://github.com/ddollar/heroku-push)
But all you have to do is git init to setup a repo, and push to the heroku remote after setting up an app. You don't have to publish your repo anywhere.
You can get back your code by using:
heroku clone <appname>

How to upload project into appfactory preview?

I'm testing with wso2 appfactory. Since it's not ready to run at local server I would like to test POC with preview edition. How can I upload a sample project into appfactory online edition?
How to populate database with data?
You can create your own project and using GIT commands you can checkout it in to your local machine.
Then open it using dev studio and do the code changes and commit it using dev studio or GIT.
Following blog posts might help you.
For GIT commands
For Dev Studio
You need to create an application and do the modifications in the code repository.
Please refer WSO2 App Factory User Guide for more information.
App Factory is graduated from preview, and WSO2 App Cloud is now available here: http://wso2.com/cloud/app-cloud/
There are a few ways you can upload applications into WSO2 App Cloud:
Via GIT,
As WAR file,
From Dev Studio.