How do I deploy djnago1.7 on PythonAnywhere? - django-1.7

i have done a project in django1.7 and python 2.7 Git Hub Repo
i have cloned in Pythonanywhere
How do i properly configure it to run successfully ?

Related

I tried deploying my react application but after npm run deploy finishes running it does not appear on the github pages

I am a beginer in react and i tried deploying a built app but it keeps saying this and when I visit the page it says site not found
File sizes after gzip:
46.96 kB build\static\js\main.af048963.js
1.11 kB build\static\css\main.37b3eb86.css
The project was built assuming it is hosted at /react-gh-pages.github.io/.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
To publish it at /react-gh-pages.github.io/ , run:
npm run deploy
Find out more about deployment here:
https://cra.link/deployment
> profile#0.1.0 deploy
> gh-pages -d build
Published

Sencha Open Tooling and Docker

I am attempting to setup CI/CD for a frontend project using Docker, ExtJS and open tooling. Because of the odd authentication process, I am unable to use npm to build a production version of the app. It appears that the build process keeps checking in with the sencha repo. You can overcome this with most git repos by generating a token and including that in the docker file. Question is: is it possible to do the same with the sencha npm repo?

How to include a separate git repository with tests in Heroku pipeline?

We are trying to set up a CI pipeline for our React application in Heroku.
For now, we have automatic deployment setup for our application which is triggered by any commit to the git repository.
We need to run tests before heroku releases the new version, and Heroku should only release the new version if all tests pass. Our tests are in a separate Git Repository, and we are using Mocha, Chai and puppeteer for the tests.
How can this be achieved in Heroku?
We have tried to include the tests repository in Heroku, but Heroku does not allow to connect to the second git repo, because it is already connected to the React application's git repo.
We went through Heroku docs but could not find anything that would solve our issue.
The final flow needed is: We commit to the application's git repo -> it triggers Heroku automatic CI -> Heroku runs tests that are in a separate git repository -> if tests pass, Heroku releases the new version.

Build a React App in Elastic Beanstalk

I followed these instructions and I made a hello world app with React. I uploaded the development files in my EBS and it worked.
After that I used the command npm run build, I followed the instructions, I installed the push-state and I tested using localhost. Everything worked fine.
But I uploaded the build files to my EBS and it complains that the app does not have the package.json file and the app does not work.
What do I have to do to put in package.json to deploy my react app using Elastic Beanstalk? How to deploy the build files generated by npm run build in EBS?
I recently deployed my react node based app using the EB CLI. I had to run eb init in my project directory which walks you through setting up the eb config. Here's the steps:
npm init to setup package.json (which you've done)
git init to setup a git repo
eb init to setup elastic beanstalk settings through its CLI
commit code
deploy to eb with eb deploy
AWS walks you through these steps assuming you're serving your app with node (which you didn't say, but it's likely).
As a bonus, you might want to setup CI so that AWS builds your app when your tests pass on code push. See the travis yaml file I use to do this.

Does Google App Engine's git Push-to-Deploy also work with git submodules?

I've got an appengine Python app which takes advantage of endpoints-proto-datastore. I did install endpoints-proto-datastore using:
git submodule add https://github.com/GoogleCloudPlatform/endpoints-proto-datastore
It does work when I deploy my app through PyCharm (using Google Appengine Python SDK).
It does not work when I push to google's repository (Push-to-Deploy). When using Push-to-Deploy I get the following log message:
ImportError: No module named endpoints_proto_datastore.ndb
Do I have to download the endpoints_proto_datastore library and unzip it in the root directory to get Push-to-Deploy working? I wanted to be up-to-date, that's why I did use the git submodule.
It looks like this does not work as stated here

Resources