Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
My web page using framework 7 can be loaded on my local desktop, but is not working on gh-pages
I think, Index.html is loaded correctly but there is some error on there.
I will attach related links about my web page to let you understand easily.
https://hahmmj.github.io/IPP20201_HALFSTACK/
https://github.com/hahmmj/IPP20201_HALFSTACK/tree/gh-pages
Before running it on the local drive, I inserted the following statement, which is recommended on forum web site, due to some errors:
npm uninstall copy-webpack-plugin
npm install copy-webpack-plugin#6.2.1
Should I add this sentences also in package.json file to publish my web site using github pages?
First, see my comment on fixing your directory structure. You can fix that as simply as:
mv docs src
Then run the following commands:
npm install
npm run build-prod
Your page in now ready inside folder www.
Now you have to overwrite the contents of your gh-pages branch with the files generated inside www.
you have messed up with the directory structure of your website . In a ideal case you should be able to see your hosted page on GitHub by entering the URL like this
https://hahmmj.github.io/IPP20201_HALFSTACK/docs/index.html
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have installed angular-cli and node in AWS EC2 server. After that i cloned my angular 2 app from Git repository i.e BitBucket to server. The problem is when i enter the ip address of my server in browser the app is not running. As angular 2 uses localhost:4200 if you are running locally but how to tell to server that which url need to use.
Wow, there are literally n number of ways to do this. You have to do exactly what you would do on your Mac's terminal. You just have an additional step of SSHing to your EC2 instance.
Open Mac Terminal.
SSH to your EC2 terminal.
Install node, npm there.
Clone angular 2's seed repository.
run npm install to install dependencies
run npm start to fire up dev server
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
Disclaimer: I am a newbie to web development.
I built a program using Python, on Django framework. I am at a point where I feel ready to deploy my site, and make it go live.
After extensive research, I've noticed that every possible path to deployment requires me to use Git.
The problem is that Git is so hard to manipulate on my computer. I have the wrong version (I guess) installed, and my attempts to fix compatibility issue has been a nightmare (Im using Mac 10.7.5, and for some reason cant upgrade to newer MAC El Captain)
My question is this: Is there a way to deploy WITHOUT using Git? Evenmore, is there a way to deploy without the use of version control (I'm the only one building this site).
I just want the easiest path to deployment possible, since I am a complete newbie.
PS Please dont direct me to this link: Is git branches necessary for a single developer?
my questions is about the importance of using Git altogether.
For some platforms, git is required for deployment. Heroku, in particular, requires git for pushing changes to a remote defined on the command heroku create. See here for more details.
In other instances, you have more options, with the caveat that you may spend a lot of time configuring a system to do so and that you may suffer from the inability to have continuous deployment without downtime.
For example, using an Amazon EC2 instance or DigitalOcean, you essentially have a bare-bones Ubuntu installation upon which you control pretty much all facets of configuration, you would be able to send files to your remote instance via SSH or using one of their clients. In this case, you would generally do the following:
Shut down your Django server
Backup your existing application and DB, just in case
Upload the files for your updated application
Run any manage.py commands for migrations and updates
pip install -r requirements.txt to check for updated dependencies
Start your server up again
As stated before, git is not required for deployment, but most Django devs would highly, highly suggest you find the root of the issue you are having with git as it helps to protect against potentially devastating problems down the line and can greatly simplify deployment when your production environment is set up correctly.
EDIT: It's worth noting that git can provide deployment functionality when your deployment environment is set up properly, but deployment often is too complex a task to rely on git alone. A commonly used method is to use Fabric with a custom fabfile to automate deployment tasks. In tandem with git you gain version control, simplified deployment commands, and the ability to run tasks as part of your deployment.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have used Ubuntu 14.04 and python 3.4 as development machine for Django.
The deployment to Amazon AWS was successful using eb deploy and website running without problem.
Somehow later I need to change my system and used another laptop for deployment. I copied my Virtualenv django project folder and pasted into my new system with same configuration. But now when I deploying using eb deploy with same security access id in AWS, it deployed succesfully but when accessing the website I am getting error as
Forbidden - You don't have permission to access / on this server.
But When I again deploy from old system it works but from new it doesn't.
I did following steps and it worked from my new machine.
1. I used mysql-devel package which is for MySQL to work on AWS with django using RDS. This was configured in django.config file. I removed this configuration from it.
2. I removed .elasticbeanstalk folder.
3. Then finally ran commands : python manage.py collectstatic & python manage.py migrate
4. Then used "eb deploy". The site was successfully deployed and running.
5. Then I again put mysql-devel package in django.config file and deploy it.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I recently reinstalled WAMP. I keep getting this error:
404 Not Found Not Found
The requested URL / was not found on this server.
Hit start, type services.msc, scroll down and look for wampmysqld and wampapache. Make sure both are listed and started. If not, do the following:
If they are not present, click the Wampserver icon, select the service (Apache for wampapache and MySQL for wampmysqld), then Service, then Install Service
If there are present but not started, try starting them. You can right click them, properties and click Start (and if you like set them to automatically start too to start when Windows does) or you can do the same as the previous step from the WampServer icon.
Check if apache is running on port 80 or 8080. Try this, to see the apache config and find the port:
httpd -t(you run this from a command prompt - start -> run -> cmd).
Note that if the wamp/apache/Apachex.x.xx/bin folder isn't in your PATH variable you will need to navigate to that folder in the command prompt or shift+right click inside the folder and select Open Command Window Here.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm looking to deploy a django app on AWS (since I have some credit coupon) and am looking for a good place to read about it - mostly b/c I never used it before. thanks
looking for a good place to read about it
Here you go
I am a developer at BitNami, you may want to take a look at our free Django AMI. It is compatible with the AWS free tier.
2 new tutorials are given
realpython doc
and
Ashok Fernandez blog
The simplest approach is to simply spin up an EC2 instance, install nginx (mysql? and any other dependencies you might have) then follow the steps on the django site: https://code.djangoproject.com/wiki/DjangoAndNginx to deploying it. This basically goes through setting up a script to run "python [your app directory]/manage.py runfcgi host=127.0.0.1 port=8080" and setting up nginx to proxy requests to that port.
Another approach is to simply use a 3rd party tool like http://nudow.com to automate the deployment. For now the initial deployment I believe has to be done manually, however subsequent deployments can be done with one click. (and has other benefits like versioning)
I usually use Nginx on an EC2 instance
If you wish to deploy your Django app ASAP, without scratching your head :
You can use this script that I wrote:
Safely deploy your Django app in less 1 minute!
Instructions
Installing the DeployDjango script
$ wget https://raw.githubusercontent.com/yask123/DeployDjango/master/deploydjango.sh && chmod +x deploydjango.sh
From your Django App’s root directory (Where manage.py file exists).
$ sudo ./deploydjango.sh project_name
Done!
Visit http://ip-address-of-your-instance to see your web app live!