production-environment

Geocoder Gem not working in Production Environment

微笑、不失礼 提交于 2019-12-10 20:14:38
问题 So I am using Geocoder to pull in latitude and longitude coordinates based on an address provided by a user when submitting a form. I am doing this so that I can plot markers using the Google Maps API. This works perfectly in development - zero issues. When I push to production however, the latitude and longitude are not generated by Geocoder. I have checked my production logs and there are zero errors. I also checked to make sure that the gem is not just installed for development and I have

assets rails 3.1 not load after precompile nginx + unicorn

此生再无相见时 提交于 2019-12-10 18:33:47
问题 I am trying precompile assets in production env. But after precompile the app does not find the images files, javascripts files, css files...etc. I run this command: RAILS_ENV=production rake assets:precompile and I get this result: /home/hyperrjas/.rvm/rubies/ruby-1.9.2-p318/bin/ruby /home/hyperrjas/.rvm/gems/ruby-1.9.2-p318/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets /home/hyperrjas/.rvm/rubies/ruby-1.9.2-p318/bin/ruby /home/hyperrjas/.rvm/gems/ruby-1.9.2-p318

pecl installing extension on production server troubles

限于喜欢 提交于 2019-12-10 14:13:59
问题 So I installed the pecl oauth module locally, and it all works perfectly. I then tried to do this for the production server but ran into some problems. If I say sudo pecl install oauth, I get this error: No releases available for package "pecl.php.net/oauth" install failed So I figure I have to update pecl.php.net, so I try the command sudo pecl channel-update pecl.php.net , but then I get this output: Updating channel "pecl.php.net" Channel "pecl.php.net" is not responding over http://,

PHP-based database models that sync with database?

爷,独闯天下 提交于 2019-12-10 13:39:50
问题 Django models are really cool because you define all your models/tables right in the code, and then sync it with the database. That way when you go to update your production server, you just run the migration/sync script and you can't forget to update any tables. The project I'm working on now though isn't Django or Python-based, it's written in PHP, and all the queries are written in straight SQL (no ORM). We've got many databases that need to be updated every time we make a change. Right

Git: Deploying to Environments with Different Web Root Directory Names

柔情痞子 提交于 2019-12-10 11:53:56
问题 I have an ExpressionEngine site set up with Git in multiple environments: Local, Development, and Production. I have a couple of directories that are above web root, so the web root directory itself is inside the git repo, like this: .git system third_party templates public_html (web root) assets css js img themes index.php Now, my development and production environments are with 2 separate hosting providers, and their web roots have different names from each other. Development, for example,

Production compilation with ejected Angular 4 application produces large files

谁说我不能喝 提交于 2019-12-10 02:23:42
问题 ng build --prod Angular CLI command produces highly compressed javascript files in Angular4 application. When the application is ejected using ng eject command, Angular CLI commands are gone and we are left with npm scripts( npm run build command to build the app), but unfortunately that command outputs a non-production build. I tried running webpack -p command directly but the output result files are slightly larger compared to the output of ng build --prod command. How to get a compression

Tasks for production prepared Ionic app

Deadly 提交于 2019-12-09 10:20:37
问题 I'm trying to figure out what's the best process to pass from the code to the final deployable apk/ipa. So far I have a testsuite using Karma + Jasmine, which transpiles the TypeScript to JS and runs some unit tests. I start that process via gulp. After that all I know is to ionic build android --release what generates (an unsigned yet) apk. But I'm not sure of how ofuscated/minificated the generated apk is. So, keeping in mind the code has to be as private as possible, is the minification

how does swap environmental URL work exactly?

故事扮演 提交于 2019-12-08 17:51:38
问题 I recently used swap environmental URL to upgrade my Elastic Beanstalk application, using two environments. I have a CNAME record at a different URL mapped to the beanstalk URL. I tried then to push to the production environment(which now was at the test URL), and then swapped again, but this seemed to not work correctly. I would expect the swap to map the test environment to the production URL, meaning that when I was previously pushing to the test environment to test, now I should push to

sql server back restore - login failed

荒凉一梦 提交于 2019-12-08 08:16:22
问题 I have a local database on sql server 2008 R2 and working fine, My hosting have sql server 2012 installed. After creating a fresh database on hosting server, I can connect easily to the blank database with given hosting credentials I have created Sql Server 2008 backup and restored it to the hosting and every stops working. Cannot open database "dbName" requested by the login. The login failed. Before Creating a backup I did created a new user with the same credetianls as provided by hosting

mailer error in production only

依然范特西╮ 提交于 2019-12-08 06:27:57
问题 Setup: VPS with Ubuntu 12.04, Apache, PhusionPassenger, Rail 3.2.12, Postgresql I want to send a confirmation mail with my app. In development mode everything works fine, the user receives a mail but in production I get this error (log): Started POST "/newsletters" for 1XX.16X.30.XX at 2013-02-26 09:22:47 +0000 Processing by NewslettersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"XXXXXXXXXXXXX=", "newsletter"=>{"name"=>"Test", "email"=>"test@example.com"},