Deploying Flask app using Dokku - flask

I have a Flask app deployed using dokku and now I want to modify the code and redeploy it. All the documents I found online says that I need to add git remote using below command
git remote add dokku dokku#mydomain.com:test
git push dokku master
Do i need to specify the domain.com:test as the domain name of my Flask application or it should be the git repo?

We need to add remote as below and then push the changes.
git remote add dokku dokku#<IP of server where app is hosted>:<App Domain Name>
Then verify remote is added using git remote -v
git push dokku master -- to publish the change

Related

django digital ocean git

I have set up my python, virtualenv, django environment in my digital ocean Ubuntu droplet. I have also set up SSH access to be able to deploy using git. I have set a remote url, so to push I just use "git remote live master". I have used git webhooks to push remotely. Since I used git init --bare for my remote repo, I cannot see the source code, I just see the hooks folders, etc.
The only issue is after pushing to the remote repository, how do I connect that repository to my django environment so that I can run it, access those source codes, so that I can do "python manage.py runserver"? I am a beginner to webhosting automatic deployment using git and django, I do appreciate your help.

Openshift and django deployment

I am trying to deploy a django project on openshift for testgin puposes. I tried to use this process described here but can't seem to be able to work it out. I successfully create my app using
rhc app create django python-2.6
But when I try to add the git it gives me the following error
fatal: Not a git repository (or any parent up to mount parent )
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
What am I doing wrong?
At creation time, Openshift should create a directory django with a skeleton WSGI application, and git folder containing the remotes needed so you can just git push its contents to the Openshift app repo.
If you are working in another directory, you have to git init and then add the remotes to Openshift.

How to deploy branch specific code using GIT?

I am using separate servers for dev, test and production environments. I have git installed on my local machine and have separate branches for each environment. How can I deploy the code from each branch to its respective server using GIT?
FYI: GIT is not installed on server.
Thanks in advance.
Simrat
You should have git installed on server,
use the following command to push you code to your remote repository
git push remote_repository_url branch_name
use the following commands to fetch or deploy the code from remote repository to your corresponding machine .
git pull remote_repository_url branch_name
or
git fetch remote_repository_url branch_name
Use fetch command to avoid the merging
Even you can use git clone command to clone the specific branch from your remote_repository(assembla) to your corresponding server >
git clone --branch branch_name remote_repository_url

Two Heroku Apps for the Same Project?

I currently have a django project deployed on Heroku, but I would like to deploy another dummy Heroku app for testing purposes. The idea is that I can make changes to the dummy Heroku account on a git branch, see how it works live, and then merge and push to my actual Heroku project. Is this possible?
I haven't tried this but I don't see why it wouldn't be possible.
Just add another remote on git to the repository to your production heroku git address.
git remote add htest your_test_app_heroku.git
git remote add heroku your_actual_app_heroku.git

Spree Starting Server

I cloned the git repository onto a local machine and Amazon Web Services.
I've tried using script/server and rails s
The code is cloned using git://github.com/spree/spree.git
How do you start the server?
I'd rather use the full git so I can ultimately change the template.
Check out the section on the github page under "Working With Edge Source"
https://github.com/spree/spree
Clone the Git repo
git clone git://github.com/spree/spree.git
cd spree
Install the gem dependencies
bundle install
Create a sandbox Rails application for testing purposes (and automatically perform all necessary database setup)
bundle exec rake sandbox
Start the server
cd sandbox
rails server
I just checked it out and it works, but edge currently isn't working. You might just want to fork it and use your own fork as a gem for a standard spree-store set up.