deployment

How to deploy separated frontend and backend?

让人想犯罪 __ 提交于 2019-12-31 08:16:11
问题 I am developing a new project with react/express as the frontend and loopback as the backend api. I have separated both of them in my development environment with different ports. How should I deploy them in production? Hosting on a same server - separate the backend with a different sub-domain? Hosting on 2 different servers - seems impossible to use back the same domain. 回答1: I just answered a related question for AWS. You can deploy your frontend on a static hosting service and a CDN AWS

How can I register in Azure ML Service a machine learning model trained locally?

↘锁芯ラ 提交于 2019-12-31 07:39:31
问题 I am trying out Azure Machine Learning Service for ML deployment. I have already trained a model on a compute VM and saved it as pickle, and now would like to deploy it (I am using Python on Azure notebooks for the purpose as of now). From the guide, it looks like I need to I need a run object to be existing in my session to execute the "model registration" step: # register model model = run.register_model(model_name='my_model', model_path='outputs/my_model.pkl') print(model.name, model.id,

Deploying site with Git: post-update hook works first time, then never again

前提是你 提交于 2019-12-31 06:55:06
问题 Having a strange issue with a git post-update hook. I created repository on my server ( /var/www/vhosts/git/master.git ) and in this repository added a post-update hook with the following code: #!/bin/sh echo $1 echo "*UPDATE*" case " $1 " in *'refs/heads/master'*) GIT_WORK_TREE=/var/www/vhosts/website.com/sandbox.website.com git checkout -f echo echo "Master was updated!" echo ;; esac case " $1 " in *'refs/heads/sandbox'*) GIT_WORK_TREE=/var/www/vhosts/website.com/sandbox.website.com git

AWS Elastic Beanstalk deploy to multiple applications

房东的猫 提交于 2019-12-31 05:49:09
问题 I'm try to describe my situation: Have multiple AWS account, credentials is located under ~/.aws/credential To swich to other account I'm typing: eb init -i --profile name Now to deploy code to accounts I must every time switch to other acc. How I can organize .ebextensions to have possibility to deploy to 10 AWS acc without switching between profiles ? 回答1: You don't need to do eb init every time. You can deploy with arguments, eb deploy --profile profile_name . If you setup your

SQL database deployment for VB.NET app

流过昼夜 提交于 2019-12-31 05:11:18
问题 I have read many articles here, but haven't quite found the solution. I have a SQL Server Express database that is used by my VB.NET application. I have packaged and deployed the application via an MSI file and everything works great except I cannot figure out how to include my database file with the package. I understand there are three general ways to do this (copy the files over manually, custom actions, and SQL scripts). I didn't need anything fancy here, just a quick way to put the DB on

Is there a way to prevent rails to precompile assets on production?

放肆的年华 提交于 2019-12-31 05:02:06
问题 I have a lot of assets in my project. The precompile task in the server is very slow and exhaust the host (CPU utilization 100%, high average latency). My idea is to precompile all assets in my localhost and send to GIT (master) all files already precompiled. In the deploy action ( cap production deploy ), avoid the precompile task and in the server, prevent any precompile task. The server uses the already precompiled files sended via capistrano , available in GIT. Is it possible? If yes, how

Bash Deployment Script Permission Problem

a 夏天 提交于 2019-12-31 04:54:32
问题 I'm writing a deployment script and have run in to a strange problem... ian@baster:~$ sudo echo "Build: "$REVISION" - Deployed: "$(date +%Y-%m-%d) > /home/www/prod/www/revision.html -bash: /home/www/prod/www/revision.html: Permission denied but... root@baster:~# echo "Build: "$REVISION" - Deployed: "$(date +%Y-%m-%d) > /home/www/prod/www/revision.html root@baster:~# more /home/www/prod/www/revision.html Build: - Deployed: 2011-01-28 then... ian@baster:~$ sudo ls -l /home/www/prod/www total 28

Heroku created table but when I'll migrate, he says that doesn't created

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-31 01:48:13
问题 I made syncdb (Python/Django application) in Heroku and he created table south_migrationhistory, (venv-project)username@username:~/projectapp$ heroku run python manage.py syncdb Running `python manage.py syncdb` attached to terminal... up, run.5529 Syncing... Creating tables ... Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_groups Creating table auth_user_user_permissions Creating table auth_user Creating table django

Publishing WebSite to Azure via powershell with SetParameters.xml

冷暖自知 提交于 2019-12-30 21:24:07
问题 Is there a chance how to use a SetParameters.xml file to set parameters in a web deployment package? I would like to deploy an application by powershell script with cmdlets Select-AzureSubscription Publish-AzureWebsiteProject But I have not found how to set a SetParameters.xml file to the Publish-AzureWebsiteProject cmdlet. Or is there an another way? Processing the SetParameters.xml file into the web deployment package before calling the Publish-AzureWebsiteProject cmdlet? 回答1: Publish

AWS Beanstalk docker image automatic update doesn't work

余生颓废 提交于 2019-12-30 17:32:14
问题 I have a node.js application packaged in a docker image hosted in a public repository. I have deployed that image in an AWS Beanstalk docker application successfully. The problem is that I was expecting the Beanstalk application to be automatically updated when I update the image in the public repository, as the following configuration sugggests. Dockerrun.aws.json: { "AWSEBDockerrunVersion": "1", "Image": { "Name": "peveuve/dynamio-payment-service", "Update": "true" }, "Ports": [ {