production-environment

Datatables not showing in production mode after running rake assets:precompile. rails 3.2

旧时模样 提交于 2019-12-12 05:55:27
问题 When i run my application in development my datatables table is showing but when i run my app in production datatables is not showing. only the records ar shown. screenshot in developemnt: screenshot in production: My production.rb: Contractbeheerpj::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests config.cache_classes = true # Full error reports are disabled and caching is turned on config

Rails Assets in Production

人走茶凉 提交于 2019-12-12 02:35:07
问题 I've just migrated to rails 3.1 and I'm having trouble getting started with the asset pipeline. I ran: bundle exec rake assets:precompile RAILS_ENV=production after adding additional css files into config.assets.precompile += ['scaffold.css', 'other.css', 'other.js'] all of my files are located in the /app/asset images, javascripts, or stylesheets path. Following the rake task, I can see the manifest.yml file but it is missing the additional css and js files I added to the config.assets

“Can't resolve all parameters for” when consuming injectable from a package

笑着哭i 提交于 2019-12-11 21:38:38
问题 I am aware there's a number of other questions that are similar to mine, however I'm unable to find any that match my situation. I have a package that is common to several applications. Within this package is an injectable called AppReadyEvent, which is based off this article: https://www.bennadel.com/blog/3151-revisited-creating-an-event-driven-pre-bootstrap-loading-screen-in-angular-2-0-0.htm I have created a cut-down version of the original package, and the cut-down version simply has this

Grails - Cannot read externalized configuration values

て烟熏妆下的殇ゞ 提交于 2019-12-11 20:00:39
问题 I am developing a grails application. I want to externalize certain configuration values, so they can be specified on server startup . In development I run the application using the following command to run the application grails prod run-app -Dmy.property="secret" At runtime I want to read the value in my controller using the following code String myVal= System.getProperty("my.property") When I check the value of myVal it is always null . I just want to be able to read the value of my.value

Is it safe to use Firestore and its features via client only? [duplicate]

蹲街弑〆低调 提交于 2019-12-11 19:55:41
问题 This question already has an answer here : Why is it okay to allow writes into Firebase from the client side? (1 answer) Closed 6 months ago . If I use the prod environment variables in my App and set the server side rules for Firestore, would my app be completely secure to perform CRUD and authentication? I am asking this because I have been seeing Angular tutorials by pretty famous YouTube content creators (Fireship) and they do not touch server side code and still show how to make a

Paperclip images failing to save in production rails

六眼飞鱼酱① 提交于 2019-12-11 19:13:44
问题 Im have just deployed a rails app which uses Paperclip to handle the file uploads to a linux ubuntu 10.04 server running apache2, passenger, rails 3.2.3 and ruby 1.9.3. My setup worked perfectly fine in development, however now in production images never save. i have commented out the following lines in production.rb so that rails deals with the file uploads and also tried using and installing XSendFile. # Specifies the header that your server uses for sending files # config.action_dispatch.x

css assets not precompiling in production

谁都会走 提交于 2019-12-11 18:34:06
问题 Question, how do you get all .css and .js to be compiled by the asset pipeline? I tried config.assets.precompile += %w(*.css, *.js) and that got all of the .js to precompile. But for some reason the .css file is not compiling. Suggestions? 回答1: For anyone trying to do this yourself, the answer had to do with the format of the selectors. precompile take an array of selectors, and the selectors are supposed to be strings, so you could do config.assets.precompile += ['*.css', '*.js'] to get all

Unexpected value xxx imported by the module xxx Please add a @NgModule annotation

这一生的挚爱 提交于 2019-12-11 18:12:28
问题 I'm attempting to convert an existing Angular app from 5.2.5 to 6.0.8. After some time struggling with an error, I've created a relatively straightforward repro which can be found here: https://github.com/DelphiWorlds/Angular6Issue The error on my machine comes out as: ERROR in : Unexpected value 'TestModule in C:/Source/angular6issue/test/app/node_modules/test-package-a6/dist/index.d.ts' imported by the module 'AppModule in C:/Source/angular6issue/test/app/src/app/app.module.ts'. Please add

Ionic: issue with prod building

流过昼夜 提交于 2019-12-11 17:19:46
问题 I have a VERY strange bug which I have absolutely no idea how to debug. When building my ionic app and launching on my Android, it works just fine. But, when I add the --prod flag - which I do every time I want to show something to the customer - I have that angular error : main.5e301c2a6dc3a49ec613.js:1 ERROR Error: StaticInjectorError[t -> e]: StaticInjectorError(Platform: core)[t -> e]: NullInjectorError: No provider for e! at t.get (main.5e301c2a6dc3a49ec613.js:1) at main

Django - Media in production is not working

那年仲夏 提交于 2019-12-11 14:30:08
问题 My static files are working well, but my media ones have a problem. I already deployed my website in heroku and it is online in production. (DEBUG=False) Look at the code: settings.py BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DEBUG = bool(os.environ.get('DJANGO_DEBUG', True)) STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), # '/var/www/static/' ] STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') MEDIA_ROOT = os.path.join(BASE_DIR,