Git from China? [closed] - ruby-on-rails

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
What's the best way to get Git to work from China? Heroku to be exact. My internet speed is decent, 8+mb download, 1mb upload. But even something like Git Pull will 'hang up unexpectedly'. Most websites load fine though.

Good. It seems you've crashed onto the Great Firewall (GFW for short) ;-)
When you mean most websites load fine, can you access twitter/facebook/youtube? If you see "connection reset by peer" then that's it.
Use a VPN or SSH tunnel to send your network traffic through the GFW is a common option to bypass censorship.
I myself setup my own homebrew ssh tunnel/VPN on linode VPS. There are many VPN service providers, one build by #yegle is pretty decent. One of my friends just setup a new site, you might want to have a look.

Using VPN is a good choice. I have using Shadowsocks for serval months. It works fine.

Haha this is a common problem for foreign folks all around here.
Yeah Shadowsocks is great, since VPN protocols can be easily detected by the authority (secret: some people are charged crime for this.)
Maybe you should setup a server in Hong Kong with Shadowsocks server configured. But one temporary solution is local mapping.
Modify your system hosts file and map the address 43.242.175.186 to the git server hostname.
Personally Iā€™d prefer Alibaba Cloud.

Related

Remove docker dependency [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed yesterday.
Improve this question
One of web tools we intend to use requires docker for installation. Due to limitation in resources, however, the only way for us to deploy this tool is on a shared university php webserver with an associated MySQL database. My question is, can you somehow convert or even "compile" this docker-dependent tool to get some simple package, similar, for instance, to Wordpress? Indeed, as per my understanding, Wordpress development does require docker, while the final package for Wordpress installation does not.
Is this operation of docker-removal possible and is there a standardised workflow? The tool in question is located in the following repository.
I have tried to install the tool as is, being blocked by the lack of admin privileges and the absence of docker on the described university webserver. I have experience in setting up Wordpress, I would expect for my tool of interest to have a more sophisticated installation process (compared to the current 3 steps) without docker and, for instance, to also require manual connection to an SQL-database.
Please excuse me for my limited understanding and layman terms, I am sadly not coming from a computer science background.

Is k8s a good idea to run a simple application? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I am tring to use Docker to hold my blog website. But before coding, I know the k8s from the web.
I am totally green with web, so it confused me that is it a good idea to hold my blog in k8s? The infometion from web tell me that k8s > Docker. I do not know is it a really a good idea or not? I have try to learn the k8s for 2 days, and know what is the cluster, services and pods and so on. But it sound not make my work easy...
Should I go on to learn the k8s or it is just a bad idea and I should turn around to just learn how to learn Docker?
Thanks.
It depends on your need for high availability and performance for your blog and how many machines you are willing to use to host your blog.
What I read from your "new-ness" to the web you do not need to go there yet. Docker is probably enough for.
First get familiar with docker / containers and then with K8S.
If you also want to learn Docker this might be a good resource (https://docker-from-scratch.ivonet.nl/) ... shameless plug šŸ˜„

Assuming Development on a Ruby On Rails App? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I wanted to get a bit of advice from the StackOverflow community on best practices/guidelines when inheriting a Rails app from another developer.
I am currently in the process of assuming control of development at my place of work. I have decent experience in front-end, SQL/Mongo, and Node.js, and a good amount of knowledge of Ruby. However, I do not have very much experience with Rails, per se.
The previous developer is being fairly unhelpful in providing dependencies and software versions of the various packages in use by the app. However, I have been able to get the following information and I have installed these dependencies (although they may differ from the versions needed by the app):
Postgres
Heroku CLI
AWS CLI
Redis
Sidekiq
AngularJS
Would any of you guys be able to briefly delineate the next steps of getting a previously existing app running (or point me to another source)?
Any help you all can provide is much appreciated. Thank you!
Things you need to retain:
Access credentials to all production servers and used services (including domain name and backup servers if there are any). It is not obligatory to be you, but someone at the company should have them (there may be some security/privacy related issues).
Access to source code
A fresh production backup (if possible)
Most of versions can be inferred from production system once you have full access.
Some others (like sidekiq etc) are in Gemfile.lock and yarn.lock files.
Then try to bring the system up from the backup - if you succeed - you'll be sure that everything is ok

Version control server setup [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm new to programming and would like to set up some kind of version control. I'm not sure how all this works.
I'm thinking that i would need to set up some remote server to check code in and out of so that if something happens to my computer i don't lose the code.
What i don't understand is if there are websites over there that offer free hosting for the repository or how does that work.
Have a look at github.com. You can have there free git (famous version control system) hosting up to 300MB (i think it's 300) of source code.
I think github has also payed account where you can have private/non-public-visible repositories.
And maybe also take a look at bitbucket.org.
What i do:
I'm using gitosis on a own server.
With gitosis you can build you own git remote (server).
But this solution requires a root server which cost around 70UDS/month.
With your own server you are independent and you don't have to place your code on other servers.

What do you think of an AWS based architecture [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I was reading through this article:
http://aws.typepad.com/aws/2008/12/running-everything-on-aws-soocialcom.html
And I was wondering if this was good or bad. I am a fan of AWS myself, but I what to hear what the crowd thinks...
There is everything perfect in the Elastic World besides reliability. Obviously, the reliability and quality of service is dependent on the service provider and if the service provider is down you don't have anything to fallback on. I am a big proponent of AWS, but with the last two outages, I am now designing fallback on local data center servers in case of outages.
One of the main design decisions when designing a solution in AWS is to expect services to fail and implement mechanism to recover and if you need HA, then implement redundancy. Don't assume all the services to be reliable (Unless otherwise stated that they implement redundancy internally). Most of these problems are solved if you are using managed services such as Lambda, API Gateway, S3, Dynamodb & etc but if you are using services like EC2, then you have to design for HA, for example for EC2 using auto scaling and load balancing.
If you are interested to learn more refer AWS Well-Architecture Framework Whitepaper.

Resources