digital-ocean

Deploy Angular 2 to Apache Server

旧街凉风 提交于 2019-11-28 03:52:17
I want to deploy an Angular 2 application on an Apache server. I've read various guides like this and this but none of them is working. I have npm and ng installed on server. In nutshell, here's what i did: Cloned complete project repository on my server. Installed dependencies using npm install . Used ng build --prod command and it created a dist directory. Changed apache root to /var/www/html/dist directory. Enabled mod_rewrite , restarted apache and added this .htaccess in my dist directory. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond

`pip install pandas` gives UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128)

萝らか妹 提交于 2019-11-27 22:48:39
When performing pip install pandas on a Digital Ocean 512MB droplet, I get the error UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128) . Any ideas what may have caused it? I'm running Ubuntu 12.04 64bit. [Full Error] jfs It looks like gcc being killed due to insufficient memory (see @Blender's comment) exposed a bug in pip. It mixes bytestrings and Unicode while logging that leads to: >>> '\n'.join(['bytestring with non-ascii character ☺', u'unicode']) Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeDecodeError:

Apache web server doesn't allow me to refresh on /about but on localhost its working fine

☆樱花仙子☆ 提交于 2019-11-27 18:34:39
I bundled up one of my projects and it works fine. However when hitting refresh on a route /about, it displays The requested URL /about was not found on this server.. However when I do it on my localhost off a web server it works fine on refresh and forward/back buttons. I'm using react-router for my client side routing. Heres the client side routing but I doubt its the problem Router.run(routes, Router.HistoryLocation, function (Handler) { React.render(<Handler/>, app); }); And my routes are just there: let routes = ( <Route> <Route name = "App" path="/" handler = {App}> <Route name="About"

End To End Testing on Headless Server

亡梦爱人 提交于 2019-11-27 13:18:06
问题 I am trying to set up an environment for end-to-end testing on a droplet running Ubuntu server 12.04.3 on digital ocean. What I am trying to achieve in the end is for my jenkins (installed on the one droplet) to be able to run my end-to-end tests. Now, the server is ofcourse headless and the end-to-end tests need to run through a browser (I am using protractor with the selenium standalone server with chromedriver). My question is: how do I spawn a browser on that machine ? I have installed

Unable to Run Multiple Node Child Processes without Choking on DigitalOcean

只愿长相守 提交于 2019-11-27 06:31:31
问题 I've been struggling to run multiple instances of Puppeteer on DigitalOcean for quite some time with little luck. I'm able to run ~5 concurrently using tools like puppeteer-cluster, but for some reason the whole thing just chokes with little helpful messaging. So, I switched to spawning ~5 child processes without any additional library -- just Puppeteer itself. Same issue. Chokes with no helpful errors. I'm able to run all of these jobs just fine locally, but after I deploy, I hit these walls

Meteor Up deployment, can't use meteor mongo --url

拈花ヽ惹草 提交于 2019-11-27 05:45:45
问题 I've recently deployed my Meteor app to a Digital Ocean droplet running Ubuntu 14.04 x32. I used Meteor Up with this mup.json file: { // Server authentication info "servers": [ { "host": "mycorrecthostname", "username": "root", "password": "mycorrectpassword" } ], // Install MongoDB in the server, does not destroy local MongoDB on future setup "setupMongo": true, // WARNING: Node.js is required! Only skip if you already have Node.js installed on server. "setupNode": true, // WARNING: If

Deploy Angular 2 to Apache Server

久未见 提交于 2019-11-27 00:12:25
问题 I want to deploy an Angular 2 application on an Apache server. I've read various guides like this and this but none of them is working. I have npm and ng installed on server. In nutshell, here's what i did: Cloned complete project repository on my server. Installed dependencies using npm install . Used ng build --prod command and it created a dist directory. Changed apache root to /var/www/html/dist directory. Enabled mod_rewrite , restarted apache and added this .htaccess in my dist

`pip install pandas` gives UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128)

浪子不回头ぞ 提交于 2019-11-26 23:13:44
问题 When performing pip install pandas on a Digital Ocean 512MB droplet, I get the error UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128) . Any ideas what may have caused it? I'm running Ubuntu 12.04 64bit. [Full Error] 回答1: It looks like gcc being killed due to insufficient memory (see @Blender's comment) exposed a bug in pip. It mixes bytestrings and Unicode while logging that leads to: >>> '\n'.join(['bytestring with non-ascii character ☺', u

Tomcat7 starts too late on Ubuntu 14.04 x64 [Digitalocean]

蓝咒 提交于 2019-11-26 22:13:17
问题 i am using digitalocean and trying to install and start tomcat on ubuntu but unfortunately i can not do it. (created new droplets and tried 10 times) 1GB Ram 30GB SSD Disk Amsterdam 2 Ubuntu 14.04 x64 When i start tomcat, it says "Tomcat started". But i can not access page from browser. and ./shutdown.sh returns error. What can be the problem ? I noticed something now. While i am writing this question, tomcat page is displayed. it took 28 minutes to display the page catalina.out says: INFO:

Apache web server doesn&#39;t allow me to refresh on /about but on localhost its working fine

时光总嘲笑我的痴心妄想 提交于 2019-11-26 15:42:46
问题 I bundled up one of my projects and it works fine. However when hitting refresh on a route /about, it displays The requested URL /about was not found on this server.. However when I do it on my localhost off a web server it works fine on refresh and forward/back buttons. I'm using react-router for my client side routing. Heres the client side routing but I doubt its the problem Router.run(routes, Router.HistoryLocation, function (Handler) { React.render(<Handler/>, app); }); And my routes are