How to Troubleshoot in Deploying App via Git/BitBucket or manually to Azure/DigitalOcean
Git Bash
- Change the location of the WAMP directory. By default goes to [username@machinename] directory and if you are running WAMP the folder is supposed to be pointed to C:\wamp\www
cd /c/wamp/www
- Command to undo git init
rm -rf .git
- Commands to add and commit the additional changes, and then push the changes to the remote repository:
git add index.html git commit -m "Celebration" git push azure master
DigitalOcean
- When setting up Laravel web application, the main page is loading as HTTP 500 Error, to find out is to check the Apache log.
The Apache’s log for Ubuntu is located under:
/var/log/apache2/error.log
- The Welcome page is up but the rest of the routing is not working. Made some adjustments on Apache:
Enable mod_rewrite on the apache server:
sudo a2enmod rewrite
Edit /etc/apache2/apache2.conf, changing the “AllowOverride” directive for the /var/www directory (which is my main document root):
AllowOverride All
Then restart the Apache server:
sudo service apache2 restart
Sources
- A beginner’s guide to using Git on Windows by GitByExample – http://gitbyexample.org/
- Dewacorp BitBucket – https://bitbucket.org/dewacorp/
- Continuous deployment using GIT in Azure App Service – https://azure.microsoft.com/en-us/documentation/articles/web-sites-publish-source-control/
- Laravel 5 on Azure – part 1 – http://blog.qbotx.com/basic-laravel-5-on-microsoft-azure-part-1/
- Laravel 5 on Azure – part 2 – http://blog.qbotx.com/laravel-5-on-azure-part-2/
- Laravel 5 on Azure – part 3 – http://blog.qbotx.com/laravel-5-on-azure-part-3/
- Laravel on Digital Ocean – http://davidmyers.name/post/laravel-on-digital-ocean
- Setting up Laravel 5 on Digital Ocean Ubuntu on Apache – http://blog.luutaa.com/cloud/setting-up-laravel-5-on-digital-ocean-ubuntu-on-apache
- Ubuntu Manual – http://manpages.ubuntu.com
Credits
Photo by Josh Sorenson: https://www.pexels.com/photo/black-flat-screen-computer-monitor-1714208/
[Note: Pageviews – 1,121 – before migrated from the Dewalist Blog website on 09/08/2020]