[ home ] [ site / arch ] [ pony / oat / ef ] [ rp / fan ]

/site/ - Site Issues

The board for discussing site related issues, questions, concerns, and suggestions.
Name
?

This field is optional. You can choose any name you want, or you can post anonymously by leaving this field empty.

Tripcodes are a way to identify yourself between posts without having to register with the site. To use a tripcode, enter your name as ‹name›#‹key›.You can choose anything you want as the key—it is private and will never be shown to other posters or stored on the server. For example:

Rarity#bestpony → Rarity!.4PK7yxdII

If you want a tripcode containing specific words, you can download a program designed to search for tripcodes, such as Tripcode Explorer.

Email?

Entering an e-mail is optional.

There are also code words you can enter here which perform certain actions when you submit your post.

  • sage — lets you post without bumping a thread.
  • nonoko — uses the original post behavior to redirect to the board index.

These can be used at the same time as an e-mail address by typing ‹email›#‹action›.

You can also use Skype names in place of an e-mail. The notation is the same as a link to a username on skype itself, which is skype:‹username›

Subject
Comment?
Giving emphasis
[b] Bold [/b] Ctrl + B
[i] Italic [/i] Ctrl + I
[u] Underlined [/u] Ctrl + U
[s] Strikethrough [/s] Ctrl + R
Hiding text
[?] Spoiler text [/?] Ctrl + S
[h] Hide block of text [/h] Ctrl + H
Special
[rcv] Royal Canterlot voice [/rcv] Ctrl + K
[shy] Fluttershy voice [/shy]
[cs] Comic Sans [/cs]
[tt] Monospaced [/tt]
[d20], [4d6] — Dice rolls
URLs and linking
Link to a post on the current board
>>1234
Link to another board
>>>/pony/
Link to a post on another board
>>>/pony/1234
Hypertext links
[url=https://www.ponychan.net/] Ponychan [/url]
File
Options
Password?

This field is for editing and deletions.


Using the Ponychan Development Tools tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 11962

The ponychan development server utilizes a workflow built around Vagrant and VirtualBox. This provides an OS-agnostic development environment where one can safely test software deployments on their local machine before pushing it to the live server.

My instructions assume you're using Windows, but outside of the steps for opening the command line the instructions are the same.

Requirements

Install the following tools on your OS:

Virtualbox -- Used to execute a virtual OS installation.

Vagrant -- A script-friendly toolchain used to provision a virtual machine (i.e. VirtualBox)

git -- A revision management tool.

Installation

Open the "Git CMD" tool from the Start menu.

Download the ponychan-tinyboard source code and development environment by executing:
git clone https://bitbucket.org/ponychan/ponychan-tinyboard.git

Navigate to that directory by executing:
cd ponychan-tinyboard

Start up the ponychan development server by executing:
vagrant up


This will take several minutes to configure your virtual environment. When complete, you should see the following message:
==> default: Server set up, please browse to http://172.27.0.2/install.php
==> default: to complete the installation. Default database settings will work.
==> default: After you complete the installation steps, go to
==> default: http://172.27.0.2/mod.php and log in as admin:password.

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 11963

File: 1500438626065.jpg (76.96 KB, 625x478, dennal.jpg)

I haven't progressed further than that tonight. I can write further instructions or answer questions you might have. Just -- please, don't brush this off.

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 11985

>>11978
>>11979
Then this site's tech admin isn't half-capable, because he's not using it.

Blindly pushing major revision updates to the live server isn't smart. I made this thread in the hopes someone might understand how to not debug on the live server. I don't know what kind of workflow you're used to, but competent developers don't go and dick around on the live server.
This post was edited by its author on .

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 11988

>>11987
>At least nothing you should consider a "major revision update".
Going from PHP5 to 7 and Ubuntu 14 to 16 isn't a "major revision update"?
https://en.wikipedia.org/wiki/Software_versioning
It meets every definition of the phrase I've ever encountered.

>sure, he probably should do more changes in a dev environment. that's about the only correct point.


That's literally what this thread is about. Zeke behaved as if there were no development tools for the site. While the readme on the bitbucket describes how to use to tools, it doesn't describe what they are and where to find them.

I'm proud of you for knowing what Vagrant is, but it doesn't seem like you're the intended target of this thread.
This post was edited by its author on .

AnonymousCountry code: ponychan.png, country type: customflag, valid: 11991

You know that when you test a production server you test the custom softare along with the dependencies, right?

Or do you literally think software development is just writing code?
This post was edited by its author on .

AnonymousCountry code: ponychan.png, country type: customflag, valid: 11992

You know just typing "dist-upgrade" fucks with your config files, right?
This post was edited by its author on .

mellowCountry code: ponychan.png, country type: customflag, valid: 11995

>>11978
>>11979
No need to shout down someone trying to help with the site. This thread isn't 'pointless'. A lot of us on the moderation don't have context on the technical side of the site to understand if things are being done improperly, and having people who are is very helpful, especially when there are very few people available to handle the sites backend.

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 12044

>>12008
>so I downloaded the repo, tried the vagrant thing, it didn't work

It worked for me when I stepped through it and wrote down my exact steps that I posted in this thread. Maybe you should try following them?

"Here's the first step to developing for this site" seems pretty useful for the /site/ board.

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 12092

>>12087
>I did get it working and made the changes I wanted, which are now applied to the site.

...

The site repo still hasn't been updated since April. I can't make changes to the site if I don't have access to the current state of the site. You're doing exactly the kind of thing that I've made several threads trying to prevent.

Can you just get over yourself for a bit and realize that just because you *can* go into the live server and muck around with things doesn't mean that's anywhere remotely close to good development practices?

I'm trying to encourage as many people as possible to develop for the site in a sound manner. What is your goal?
This post was edited by its author on .

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 12093

>>12087
>gee it's almost
>I dunno
>if we did the same thing
>and it only worked for one of us.
>
>impossible.
And rather than use this thread to discuss what you might have been doing wrong, you shit on the idea of having a thread that has a goal of solving exactly the kind of problem you were running into.

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 12094

Really, I'm getting a lot of flak from around the community for how I'm approaching this, but how else am I supposed to behave when people are aggressively pushing their bad workflow?

Does anyone have any interest in making sure the site remains secure and stable, or is everyone just content giving the keys to the kingdom to any novice Dunning-Krugering their way through PHP?
This post was edited by its author on .

!pinkie78OsCountry code: ponychan.png, country type: customflag, valid: 12095

File: 1500935828029.png (58.23 KB, 564x697, Lapis_sketch_08.png)

>>12094

Or maybe you're getting flak from the community because you yourself are so aggressively pushing your own thoughts on the matter.

Two different threads on the subject, multiple posts in a row going on about how you're right and everyone else is wrong, pushing back against anyone who doesn't immediately agree with you...

That's a recipe for making sure that no one wants to listen to you or what you have to say.

Don't blame other people for how you choose to handle things. You could've gone about this a lot better, but you haven't, so obviously it's going to fall on deaf ears.

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 12096

>>12095
You didn't answer either of my questions.

None of my concerns have been even *acknowledged*, let alone addressed. Everyone just seems to want to hand-wave it away as unimportant or unnecessarily hostile, when literally the only response I get out of anyone is "this is pointless".

Do you want to help move this in the right direction, or do you want to continue supporting the staff's stance that their workflow should be respected simply because they have it?

The scripts crawling the web looking for vulnerabilities don't care if you tried your best, and I'm approaching it with that in mind.
This post was edited by its author on .

AnonymousCountry code: ponychan.png, country type: customflag, valid: 12127

>>11962
As someone that used ponychan's virtual environment over the span of a year I developed here, I have to say, the shear quantity and magnitude of caveats specific to Windows makes it not worth the effort. I got the environment working on Windows, and it was my primary workspace for coding, but I wouldn't do it again.

Look up node-gyp -- a used dependency in the babel workflow -- on stack overflow. You think it still couldn't be that big of a deal, but then you think twice after you have to install python 2.7 and play around with the global scope and make sure you don't also have Python 3 installed. Then you'll think twice again when you realize you have to install a specific version of visual studio -- and you'll have no way of confirming whether or not you're making progress in fulfilling the required dependencies because never at any point will the console output what you were missing that broke the build. Then maybe that Visual Studio package wasn't the right package you wanted (Even the readme is written in the style like they aren't really confident in which package you need to install). And then you google for more help and find out that you are required to install the 64 bit version of node if you're on a 64 bit OS (the package won't warn you about this either at any point) and, after going through the installation steps, in a particular installation order, maybe, just fucking maybe your console will output an error on the first build but will succeed in the second build.

But really you should just do a dual boot installation of ubuntu and be done with it.

Apologies for my long rant. Installing this on windows is at least possible, but it's like pulling teeth.

Starshine!Laura/wmXMCountry code: ponychan.png, country type: customflag, valid: 12128

>>12127
Hi Shutterbox, long time no see.

AnonymousCountry code: ponychan.png, country type: customflag, valid: 12129

>>12128
Hi Starshine. I should stop by here more often but lately I haven't had the chance. I can probably provide help setting up the VM and using the repository. Macil was pretty diligent at making sure every site update went through the repository first.

>>12098
Vagrant will give you some trouble on Windows as well. This is because Windows doesn't come with SSH, and vagrant can't provide it in the installation because of license-related reasons. So the workaround is to install the full version of git, not a portable version, then you add the folder with the ssh binary to your PATH variable.

Virtualbox will also give you some trouble if you have some theme patcher installed for some stupid reason.
This post was edited by its author on .

thonCountry code: ponychan.png, country type: customflag, valid: 12131

<3 shutter

AnonymousCountry code: ponychan.png, country type: customflag, valid: 12132

>>12131
Hiya, Anonthony!

>>12130
Hey Mikie, good luck on your new admin role. I know it's quite a shakeup for both admins to simultaneously resign, but it's been a while since we've had any admins that didn't have to power struggle to make decisions on their own. Not even Fen really had that privilege. Maybe you and Flutters can make something out of it.

I kind of wish I was able to make a bigger difference after the merger - to be able to get old regulars to come back to the site thinking, "wow, looks like I was missing out here. I should have come back sooner", rather than the proverbial OP greeting of "Wow, this place still exists?". So maybe the site needs fresh blood to make that possible, even if it is a famous shitposter like yourself.

Something still can be done about this place. It can be a pain in the ass sometimes, but if you don't have to deal with the admin drama like the site did over the past six years, don't feel discouraged. You set the tone, Mikie.

I'll definitely make time to show you how to get the VM running and where exactly I left off with coding since there seems to be interest now.

AnonymousCountry code: ponychan.png, country type: customflag, valid: 12195

File: 1502510114915.png (183.88 KB, 466x425, chromia-snatch.png)

>>12134
I don't know about that. If I were stumped, this place might be one of the places I would look. It would be a choice between that and Google. Either way, we're not really hurting anyone with this thread's existence.

Anyways, I got my environment set up. If you get any complaints from node about an internal error involving the package 'fs', just delete the node_modules folder somewhere in your appdata directory. It will give you the path in the error. If you're on a linux distro, it would be under /lib/.

!!Babs Seed ## DeveloperCountry code: ponychan.png, country type: customflag, valid: 12211

File: 1502770735703.png (32.57 KB, 128x128, char_85434.png)

Dev posting again, as there seems to be more interest than I expected in just coding in Windows. Since many people, including myself seem to be ignoring my warning, I'll elaborate on how you might set up your VM on a Windows platform.

I would suggest that you get a good package manager, preferably chocolatey. I don't know of any other package managers that are stable, other than the one that ships with Powershell on Windows 10.

Install a good terminal. I recommend either Cmder or ConEmu. As long as it's not the default Windows terminal (the one used for cmd.exe), then you're fine. You might also want to consider running your terminal as administrator by default because you'll almost always will need it.

There's also a special way you have to get vagrant to communicate with Virtualbox, and to do that, you need to install Git, configured so that ssh.exe is exposed in the path variable. You can do this via chocolatey by running the command:
choco install git --params "/GitAndUnixToolsOnPath"

Then you'd cd to the directory you want to download the source code and clone the repo with:
git clone [email protected]:ponychan/ponychan-tinyboard.git

Then install the dependencies:
choco install virtualbox vagrant

That's the basics for installing the VM but leaves out the client-end javascript as well as the nodejs environment. At that point, it might as well be uncharted territory.

I'm beginning the long journey of updating the repo so then I can let any faulty updates blow up on the VM rather than the server. If any of you guys are having problems with the VM, just drop a post in this thread.

!!Babs Seed ## DeveloperCountry code: ponychan.png, country type: customflag, valid: 12222

File: 1502958015445.png (164.92 KB, 350x510, Babs_Seed_navbox_crop_S3E4.png)

>>12213
>commands to vagrant just seem to be ignored
What happens when you just enter `vagrant`?

>compile js

These are just the first steps to setting up your machine. Normally on Linux you wouldn't have a problem just following through with what the readme says, but on Windows, one of the dependencies in node would complain because it can't find a bunch of things outside of node, such as Python and a C++ compiler.

I just took a second look at the module list and it looks like that dependency isn't there anymore. If the package 'node-gyp' has been phased out by its dependents, this is major progress. Maybe Windows users no longer need special treatment on these steps.


Delete Post [ ]
Edit Post
Posts on this board may be edited for 2 hours after being made.
[ home ] [ site / arch ] [ pony / oat / ef ] [ rp / fan ]