production

Transferring changes from a dev DB to a production DB

假装没事ソ 提交于 2019-11-30 10:30:15
Say I have a website and a database of that website hosted locally on my computer (for development) and another database hosted (for production)...ie first I do the changes on the dev db and then I do the changes to the prod DB. What is the best way to transfer the changes that I did on the local database to the hosted database? If it matters, I am using MS Sql Server (2008) Ron Savage The correct way to do this with Visual Studio and SQL Server is to add a Database Project to the web app solution. The database project should have SQL files that can recreate the entire database completely on a

Angular 5 NullInjectorError: No provider for n

我是研究僧i 提交于 2019-11-30 09:17:33
问题 When I'm starting my website with ng serve everything works fine, but every try to launch a production getting an error NullInjectorError: No provider for n . I checked all services that I wrote are included in NgModule providers. Because this is the production, all files are minified and uglified, so I don't know what exactly cause the problem. Is there any way to check it or maybe it's possible to get from the error details? ERROR Error: StaticInjectorError(G)[n -> n]: StaticInjectorError

zend framework auto switch production staging test .. etc

ぐ巨炮叔叔 提交于 2019-11-30 07:29:57
What do I change to switch from production to staging.. etc.. and where.. Bootstrap ? Also, Curious if anyone has configured their Zend Framework to automatically switch from production, staging, test.. etc based on Host information.. example.. if (hostname = 'prodServer') ... blah if (hostname = 'testServer') ... blah I'm new to Zend but I typically configure my projects to automatically switch run environments based on the host information. thanks Assuming that you are using APPLICATION_ENV as part of Zend_Application, then you could add this in either your .htaccess or main Apache config

Reactjs:How to hide node modules and webconfig in the devtools on production app?

℡╲_俬逩灬. 提交于 2019-11-30 05:38:01
问题 I've created a React.js application running npx create-react-app my-app and I don't want the complete project to be available in the devtools when in production mode. How can I disable or hide node modules and webconfig in the sources tab(devtools)? I checked in other deployed react application which does not show static folder or the entire project; how can I achieve same? Below, a screenshot from the console of my browser's "Sources" tab, showing some directories I would like to hide to the

What's the correct way to serve production react bundle.js built by webpack?

与世无争的帅哥 提交于 2019-11-30 03:29:53
I have an app with simple routes. It works fine when I use webpack development server. Now, I want to deploy it to my production server. So I built bundle.js. However, I am not sure what's the correct way to serve the file on the server. Most blog posts stop at building bundle.js or deploy it to heroku or nodejutsu. What should I do if I want to serve it on my own server? I tried serving the file on express server, but I'm getting this error in the browser (this same route works fine with webpack-dev-server). http://localhost:3000/app Cannot GET /app I have simple route like this. Landing page

How to build task 'assets:precompile'

[亡魂溺海] 提交于 2019-11-30 01:27:25
I'm getting that error on my production server, and can't figure out why. It happens when running this command: bundle exec rake assets:precompile RAILS_ENV=production I'm using Rails 3.1.0.rc6 This is most likely due your config/application.rb not requiring rails/all (the default), but some custom requires. To resolve this, add the following to config/application.rb : require 'sprockets/railtie' I know this is an old post but I thought it might help someone (probably my future self) if I added this to the answers. add to Capfile (or deploy.rb) load 'deploy/assets' add this to application.rb

Cannot start rails 4 console on production server

眉间皱痕 提交于 2019-11-30 01:20:10
Having a weird issue and need help. I am trying to start a rails console on a production server and it is acting like the rails c command does not exist. FWIW, I have been a rails developer for 4 years and do this all the time on a plethora of other servers without issue. On this server, I can drop, create, migrate, seed the database with no problems (using RAILS_ENV=production), and the app works fine live without any issues. Setup: Ubuntu 14.04 (racksapce 2nd gen performance 1 server) Nginx with Passenger (I typically use Unicorn, but have never had a problem on any of the apps I have

zend framework auto switch production staging test .. etc

别等时光非礼了梦想. 提交于 2019-11-29 09:40:57
问题 What do I change to switch from production to staging.. etc.. and where.. Bootstrap ? Also, Curious if anyone has configured their Zend Framework to automatically switch from production, staging, test.. etc based on Host information.. example.. if (hostname = 'prodServer') ... blah if (hostname = 'testServer') ... blah I'm new to Zend but I typically configure my projects to automatically switch run environments based on the host information. thanks 回答1: Assuming that you are using

Rails 3.1 assets pipeline in production

三世轮回 提交于 2019-11-29 04:34:26
I am using the assets pipeline (in Rails 3.1.3) and am kind of struggling to make it work in production. Situation In my /app/assets/stylesheets directory I have the following files: application.css --> this is the default rails one stylesheet.css --> This is my custom stylesheet I spent a lot of time getting my stylesheet.css included in the /public/assets/ directory in production (by running rake assets:precompile ) and I finally made it by adding the following line into in my application.rb file: config.assets.precompile += ['stylesheet.css'] I know have the right precompiled stylesheet.css

GCM certificate configuration not working or iOS

淺唱寂寞╮ 提交于 2019-11-29 04:02:15
I am facing one issue when I am trying to confiure the GCM and getting configuration file. When I am trying to upload the production certificate over the GCM portal it says " Bundle Id in certificate doesn't match with Bundle Id you entered ". I verified already for the same. Still no joy. Anyone help plz. I tried it with both Development and Production .p12, both worked for me. You need to make sure you generate a correct .cer certificate file from your Bundle ID, and need to make sure you export the correct .p12 file from your Keychain Access. You can view the sample steps in this page . You