Skip to content

u/phaeilo

In this archive from Jun 2013 to Nov 2016

0
posts
45
comments
0
media
176
score

I don't know Capistrano, but yes, you likely have to implement some things to make this process work and deal with migration failures ;)

As far as Apache is concerned, you don't have to restart it for a configuration change. You can simply tell Apache to reload the configuration.

If you don't want do modify and reload the Apache configuration for each client, simply use symlinks to point each client to the correct version of the application code.

Given that a database migration isn't instantaneous and might fail, you'll probably want to switch the client you are migrating to a maintenance page temporarily.

Again, I don't know your deployment infrastructure, but I'd suggest you split your process into multiple parts: First, get the code of the latest version onto the server (use a unique directory name for each version). Then, migrate each client individually. I.e. run some "task" for each migration.

If a few migrations fail, you can deal with rollbacks, restoring backups, or manual fixing while all other clients are already using the latest version.

3 points

What about temporarily running two instances of your application? VersionN and VersionN+1. Initially all clients still use VersionN. Then migrate the database of client1 and route their requests to VersionN+1. Continue with the next client until all are migrated. If one migration fails, the other clients are not affected.

2 points

I often need to build VMs for development/testing purposes. So I wrote a small script that does the arch installation for me. It's maybe 100-200 lines of bash and can run completely unattended. I basically copied the commands from the installation guide into the script, added some flags here and there to avoid interactive prompts, and added some error checking.

3 points

Ubuntu will use the open source driver by default. It will give you the option to install the proprietary driver if you want to. You can switch drivers anytime you want.

In my experience, games would often crash with the proprietary driver but worked flawlessly with the open source driver.

Booting Ubuntu from USB to check compability is a good idea.

2 points

No, using a hash function does not magically make your data more random. sha1(uniqid()) will not provide "better" randomness than uniqid().

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.