I want to host my angular project on Hostinger. I have deployed the dist folder but i am not able to check the static file.
Related
I've one repo sunixi and it has two projects sun-angular(angular) and sun-admin(spring boot) in ts-admin i'm building ts-angular via executions and moving dist into resources/static of sun-admin project after that i'm building the sun-admin. On local enviroment it is working fine but how can i do same in heroku deployment.
structure of repo
sunixi
---sun-angular
---sun-admin
in sun-admin i'm setting workingDirectory as ../sun-angular but while deploying to heroku i'm getting
Cannot run program "npm" (in directory "/tmp/build_02607c07/sun-angular"): error=2, No such file or directory
If you are using a monorepository strategy, an option is to use subdir buildpack to select where is the path of your folder: https://github.com/timanovsky/subdir-heroku-buildpack
If you want to deploy backend and frontend in the same heroku app, the project folder should contains a npm package. Otherwise, i will not work.
I designed a Laravel 8 app and successfully deployed it via cPanel. What I did was create a git repo in my cPanel. Connected that repo to my local app folder. Pushed the repo from my laptop and deployed it via git's post-receive hook to the public_html folder.
Now what I request you seniors to tell me, is what is the best practice of deploying the Laravel project.
a) should I deploy directly to my public_html folder via git repo (as I have done) or
b) should I deploy it to another folder and create a symlink pointing to public_html folder.
After deploying, i found that all my folders in storage folder where images are stored, have been deleted/removed. Should I again create those folders and try to create a symlink as I do in local project or there is some other procedure for doing that?
Regards
The public directory in your project needs to be the public facing directory. From what you have described, you need to point public_html to your public directory. So you probably will have to deploy to another directory.
You will need to recreate your storage directories and files, as it sounds like they are being ignored. Check your .gitignore file to make sure the proper files and directories are being tracked.
We are using Jenkins Azure Blob plugin to deploy into Azure Blob Storage and have to use $web hosting feature in Azure.what happens is while mentioning the folder like build/* , this is copying the entire build folder into $web container instead of the files inside the build folder. As per the Azure static web hosting, the document index file will be only pointed to index.html under $web i.e. $web/index.html, but in this case it is coming as $web/build/index.html which we don't want. This build folder can't be configure in the Azure Web static hosting and it has to be in the root as there are couple of files which comes as relative path automatically after build.
https://azure.microsoft.com/en-us/blog/azure-storage-static-web-hosting-public-preview/
https://learn.microsoft.com/en-us/azure/storage/common/storage-java-jenkins-continuous-integration-solution
Please can someone check and responds..
Thanks
Just use the dir command to run the Azure Storage inside your root folder, and remove the folder from the parameter:
dir('build'){
azureUpload blobProperties: … filesPath: '**/'
}
Using angularcli-meteor, how to deploy an angularcli-meteor application on Galaxy since the meteor project itself is inside the "api" folder?
I have the same question in mind for a ionic 3 application, your API folder is a meteor project so you can deploy it on galaxy. And then host your Angular app else where if you make sure that your DDP_DEFAULT_CONNECTION_URL points to this galaxy server.
You can set it DDP_DEFAULT_CONNECTION_URL in bundler.config.json don't forget to re-generate your meteor-cliend-bundle.js file (npm run meteor-client:bundle) before deployment.
For a project I want to do a performance comparison of different web-frameworks on a raspberry pi. Thats why I want to do only a manual deploy to mess around with it a bit.
I created a Vaadin project using maven and exported it as application.war file. I downloaded the tomcat-7 server and unzipped it. After that I gave the .sh files in the folder executable permission. Then I copied .war file in the webapps folder of tomcat. Finally I started tomcat by running sh startup.sh.
But when I try to open the page on my dev machine under ip:8080/application I only receive a timeout.
Did I miss something?